I have an array like the one below.
let array = ["Sandy", 5, 2, 7]
I want to push a number of blank elements at the end of the array based on a variable ("x"). If x = 3, it would add three elements to the end of the array:
let array = ["Sandy", 5, 2, 7, , , ]
I know the push method allows you to add specific elements to the end of an array. How would I achieve this? Hope this question is clear