🧠 JavaScript Interview Question Breakdown!

preview_player
Показать описание
🤔 What will the output be?
🕵️ Why?
Strings in JavaScript are immutable, so properties like .length cannot be modified.
💡 Key Takeaways:
JavaScript strings are primitives, and their properties (like .length) are read-only.
Always be cautious when trying to modify the intrinsic behavior of built-in types.
This type of question tests your understanding of how JavaScript handles primitives and object properties. Mastering these concepts will make you interview-ready! 🚀
--
Рекомендации по теме
Комментарии
Автор

It would probably just print 5 since you can’t set the length like that, or any property

druganov
join shbcf.ru