Basic JavaScript Question:

What’s a way to append a value to an array?

Tweet Share WhatsApp

Answer:

Way to append a value to an array in JavaScript

arr[arr.length] = value;

Download JavaScript PDF Read All 114 JavaScript Questions
Previous QuestionNext Question
How do you assign object properties?What is this keyword?