What goes in the blank?
// returns the length of the array arr
function size(arr) {
return arr.____;
}
Answer: length
JavaScript arrays expose their size via the length property.
Play Problem Solving ▸
// returns the length of the array arr
function size(arr) {
return arr.____;
}
Answer: length