My question is how to set the value of an array in JS like PHP? eg: in php I have an array named Arr, I set a new value at n position using
Arr[] = value
but i am trying to do the same in JS but displaying error
Use the push command
Arr.push(value)