lib/Add Element to Start of an Array.js
// Add Element to Array Using splice()
Add Element to Array Using splice()
Add Element to Array Using splice ()
function addElement(arr) {
    arr.splice(0, 0, 4);
    console.log(arr);
}
function addElement ( arr ) { arr . splice ( 0 , 0 , 4 ) ; console . log ( arr ) ; }
Add Element to Array Using splice()
Add Element to Array Using splice ()
// adding element to array