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
Next Next commit
Update arrays.js
  • Loading branch information
heartwhite authored May 6, 2019
commit da68d90898220dbdb629f74639a04a12f4202a6a
6 changes: 3 additions & 3 deletions Week1/arrays.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//append arrays
let arraysInside = [];
console.log ('my array will contain: eagle, horse and dog');
console.log ('my array will contain some animals');
console.log(arraysInside);
let myFavoriteAnimals = ['eagle ', 'dog ', 'horse '];
console.log(myFavoriteAnimals);
arraysInside = ['baby pig ' , myFavoriteAnimals];
console.log(arraysInside);
myFavoriteAnimals.push('baby pig');
console.log(myFavoriteAnimals);