var array = [1, 2, 3, 4]; console.log(array.unshift(5, 6)); // 6 // array length after prepend elements console.log(array) // [5, 6, 1, 2, 3, 4]