Week 3 (a) Array Methods
001let prices = [1.99, 0.55, .99, 99, 0.79]; 002//console.log(prices); 003prices.push(20.22,23.44); //adds to the end of the Array 004prices.shift(1) 005 006console.log(prices); 007console.log(prices.toString());
This site will be updated live during the sessions
001let prices = [1.99, 0.55, .99, 99, 0.79]; 002//console.log(prices); 003prices.push(20.22,23.44); //adds to the end of the Array 004prices.shift(1) 005 006console.log(prices); 007console.log(prices.toString());