Object Exercise
For each of the exercises below, assume you are starting with the following programming object.
let programming = {
languages: ["JavaScript", "Python", "Ruby"],
isChallenging: true,
isRewarding: true,
difficulty: 8,
jokes: "https://www.devtopics.com/best-programming-jokes/"
};
- Write the command to add the language βGoβ to the end of the languages array.
- Change the difficulty to the value of
7. - Using the
deletekeyword, write the command to remove the jokes key from the programming object. - Write the command to add a new key called
isFunand a value oftrueto the programming object. - Using a loop, iterate through the languages array and console.log all of the languages.
- Using a loop, console.log all of the keys in the programming object.
- Using a loop, console.log all of the values in the programming object.
Solutionsβ
You can find solutions to the exercises here
When youβre ready, move on to Function Basics