1var colors = ["white","blue"];
2colors.unshift("red"); //add red to beginning of colors
3// colors = ["red","white","blue"]
1let arr = [4, 5, 6]
2
3arr.unshift(1, 2, 3)
4console.log(arr);
5// [1, 2, 3, 4, 5, 6]
6
1var name = [ "john" ];
2name.unshift( "charlie" );
3name.unshift( "joseph", "Jane" );
4console.log(name);
5
6//Output will be
7[" joseph "," Jane ", " charlie ", " john "]