Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update app.js
question 6.6 is edited.
  • Loading branch information
Shvan1 authored May 29, 2019
commit 75c92a3bc387765fbe5dc694f69019b05cf68538
5 changes: 2 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ console.log("I think the value will be undefined");
console.log(arrays);

//6.4
let myFavoriteAnimals = [cat, dog, sheep];
let myFavoriteAnimals = ['cat', 'dog', 'sheep'];

//6.5
console.log(myFavoriteAnimals);

//6.6
let favoriteAnimalOfDaan = "baby pig";
const animals = myFavoriteAnimals + "" + favoriteAnimalOfDaan;
const animals = myFavoriteAnimals.push('baby pig');

//6.7
console.log(animals);
Expand Down