What is a way to append a value to an array?

Answer Posted / narasimhan

We can use push() method to add an element in an array in
its last node.

Is This Answer Correct ?    25 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between Pure functions Vs. Impure functions in javascript?

485


What is the difference between undefined and object?

557


How to open a window with no toolbar, but with the location object?

467


What are decodeuri() and encodeuri() functions in javascript?

470


How can JavaScript be used?

533






What is slug in javascript?

497


What is a currying function?

489


Does javascript have the concept level scope?

578


What is a method in javascript?

507


Enumerate the differences between Java and JavaScript?

692


What is the data type of variables of in javascript?

489


What are self Executing Functions?

605


How to read a cookie using javascript?

528


How to find the selected radio button immediately using the 'this' variable?

513


What are arrays in javascript?

464