Which fix removes the bug?
const nums = [1, 2, 3]; console.log(nums.length());
- Use
nums.sizewithout () - Use
nums.countas a method - Use
nums.lengthwithout () - Use
length(nums)as a call
length is a property, not a method, so drop the parentheses.