Array.prototype.unshiftbeginnerconst arr = [2, 3, 4]
arr.unshift(1) // returns 4 (new length)
arr // β [1, 2, 3, 4]Use unshift() to prepend one element to the beginning of an array.
unshift prepends one or more elements to the beginning of an array and returns the new length.
Implement addToStart which unshifts val onto arr and returns the new length.