javascript - Set dynamic value to Array in JS like PHP -
this question has answer here:
- how insert item array @ specific index? 10 answers
my question how set value array in js php? example: in php have array named arr, set new value in n position using
arr[] = value
but try same in js display error
use push command
arr.push(value)
Comments
Post a Comment