Basic JavaScript Question:
What’s a way to append a value to an array?
Answer:
Way to append a value to an array in JavaScript
arr[arr.length] = value;
arr[arr.length] = value;
Previous Question | Next Question |
How do you assign object properties? | What is this keyword? |