6. How to add something in the beginning and end of an array
var array = ['Java','PHP','SQL','HTML']; // add "Angular" in the beginning array.unshift('Angular'); // add "React" in the end array.push('React'); console.log(array);