Skip to content
Open
Changes from all commits
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
7 changes: 7 additions & 0 deletions exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@
/*1. Mr. Bonner (aka the Red Rocket, the Red Mamba) doesn't belong in this class of Hall Of Famers. Remove this imposter immediately and assign it to a new variable named `notHof` Console.log this new variable as well as the original list.*/

var hof = ["Jordan", "Bird", "Kobe", "Duncan", "Iverson", "Bonner"];
var notHof = hof.pop();
console.log(notHof);
console.log(hof);
console.log("test");


// var notHof = hof.pop();
// console.log(notHof);


/* The array.push() adds one or more element to the end of an array and returns the new length of the array*/

Expand Down