Skip to content

Commit 75c92a3

Browse files
authored
Update app.js
question 6.6 is edited.
1 parent cc297b4 commit 75c92a3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,13 @@ console.log("I think the value will be undefined");
7474
console.log(arrays);
7575

7676
//6.4
77-
let myFavoriteAnimals = [cat, dog, sheep];
77+
let myFavoriteAnimals = ['cat', 'dog', 'sheep'];
7878

7979
//6.5
8080
console.log(myFavoriteAnimals);
8181

8282
//6.6
83-
let favoriteAnimalOfDaan = "baby pig";
84-
const animals = myFavoriteAnimals + "" + favoriteAnimalOfDaan;
83+
const animals = myFavoriteAnimals.push('baby pig');
8584

8685
//6.7
8786
console.log(animals);

0 commit comments

Comments
 (0)