What will the final count log show in Javascript? And why? Go!

Google for Developers · Beginner ·📰 AI News & Updates ·1w ago
A quick JavaScript brain teaser. We start with an array created using new Array(3). Then we run a small piece of code that looks completely reasonable. At the end, we log a value, which may not be what you expected. What number appears, and why? Watch the video and share your answer in the comments. Subscribe to Google for Developers → https://goo.gle/developers Speaker: Sayali Godbole
Watch on YouTube ↗ (saves to browser)
Advertising in the Age of Generative AI
Next Up
Advertising in the Age of Generative AI
Coursera