✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What happens when running the following code? What do we get as a result?
const nums = [1, 2, 3]
nums[8] = 777
console.log(nums.length)