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

Answer Posted / gayathri

its a way to append a value to an array
arr[arr.length] = value;

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To set all checkboxes to true using javascript?

559


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

526


What is the difference between write and writeln in javascript?

453


What is difference == and === in javascript?

507


What is a closure javascript?

517






How do you know if a set of points is a function?

457


What is output of “20” + 20? In javascript?

505


Which is better for or foreach in javascript?

458


What is servlet in javascript?

509


Can you give an example showing javascript hoisting?

461


How can javascript be used to improve the "look and feel" of a web site? By the same token, how can javascript be used to improve the user interface?

520


What is difference between module.exports and export?

446


What is namespacing in javascript and how is it used?

477


What does polyfill mean?

501


Which built-in method adds one or more elements to the end of an array and returns the new length of the array?

814