javascript pushing element at the beginning of an array [duplicate] September 9, 2022 by Tarik Use unshift, which modifies the existing array by adding the arguments to the beginning: TheArray.unshift(TheNewObject);