1 parent cc297b4 commit 75c92a3Copy full SHA for 75c92a3
1 file changed
app.js
@@ -74,14 +74,13 @@ console.log("I think the value will be undefined");
74
console.log(arrays);
75
76
//6.4
77
-let myFavoriteAnimals = [cat, dog, sheep];
+let myFavoriteAnimals = ['cat', 'dog', 'sheep'];
78
79
//6.5
80
console.log(myFavoriteAnimals);
81
82
//6.6
83
-let favoriteAnimalOfDaan = "baby pig";
84
-const animals = myFavoriteAnimals + "" + favoriteAnimalOfDaan;
+const animals = myFavoriteAnimals.push('baby pig');
85
86
//6.7
87
console.log(animals);
0 commit comments