Podcast
Questions and Answers
What is the index of the first element in an array?
What is the index of the first element in an array?
What is the purpose of the Array object when declaring an array?
What is the purpose of the Array object when declaring an array?
What is the difference between var a_ary = ['a', 'b', 'c']; and var a_ary = new Array('a', 'b', 'c');?
What is the difference between var a_ary = ['a', 'b', 'c']; and var a_ary = new Array('a', 'b', 'c');?
What is the output of console.log(a_ary.length);?
What is the output of console.log(a_ary.length);?
Signup and view all the answers
What is the purpose of the length property of an array?
What is the purpose of the length property of an array?
Signup and view all the answers
What happens when you use Array.prototype.unshift() on an array?
What happens when you use Array.prototype.unshift() on an array?
Signup and view all the answers
What is the difference between Array.prototype.shift() and Array.prototype.pop()?
What is the difference between Array.prototype.shift() and Array.prototype.pop()?
Signup and view all the answers
What is the purpose of the Array.prototype.splice() method?
What is the purpose of the Array.prototype.splice() method?
Signup and view all the answers
What is the return value of the Array.prototype.shift() method?
What is the return value of the Array.prototype.shift() method?
Signup and view all the answers
What happens when you use Array.prototype.push() on an array?
What happens when you use Array.prototype.push() on an array?
Signup and view all the answers