javascript - Set dynamic value to Array in JS like PHP -


this question has answer here:

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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -