Computer Science, asked by Questionologist5689, 1 year ago

insert an element in an array

Answers

Answered by Anonymous
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.
Similar questions