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

What are the data types in js?

704


What are global variables? How are these variable declared and what are the problems associated with using them?

725


Why do you need javascript?

660


What are the boolean operators supported by javascript? And operator: &&

673


How fast can you learn coding?

728


What is the use of anonymous function in javascript?

624


What is NaN?

756


What is primitive data types in javascript?

691


What is a closure javascript?

703


Is javascript object a hash table?

692


What kind of conditional statements does JavaScript support?

730


What's the purpose of javascript?

674


Describe negative infinity in javascript?

705


When would you use var in your declaration and when you wouldn’t?

704


Should you disable javascript?

689