insert an element in an array
Answers
Answered by
1
I'm assuming that your question is related to javasctipt...ok
var myarr = [];
myarr.push('my_new_value');
now if you will print myarr like ths:
console.log(myarr);
you will see:
['my_new_value'] in console.
var myarr = [];
myarr.push('my_new_value');
now if you will print myarr like ths:
console.log(myarr);
you will see:
['my_new_value'] in console.
Similar questions