Day 1: Arrays - Creation & Basic Mutation
Daily Objective
Section titled “Daily Objective”Create ordered collections with arrays and add/remove items using mutation methods.
1. Array Basics
Section titled “1. Array Basics”const skills = ['HTML', 'CSS'];skills.push('JavaScript'); // adds to endskills.unshift('Git'); // adds to startconst last = skills.pop(); // removes from endconst first = skills.shift(); // removes from startconsole.log(skills); // ['HTML', 'CSS']console.log(skills.length); // 2Daily Hands-on Practice (70%)
Section titled “Daily Hands-on Practice (70%)”- Create a playlist array and manipulate songs using
push,pop,shift, andunshift.