JS primitives having object wrappers | JavaScript Interview question #javascript #codinginterview

preview_player
Показать описание
In JS almost everything is treated as an object. Even primitive datatypes like strings have object wrappers and we can access the properties and methods of the string class.
Рекомендации по теме
Комментарии
Автор

yes because of length is a string built in property 'apple'.length or 'apple'.['length'] both are same

sumitsakpal
welcome to shbcf.ru