Home
My Highlights
Discover
Sign up
Methods of primitives
javascript.info
functions, for example, are objects. The “object wrappers” are different for each primitive type They have no corresponding “wrapper objects” and provide no methods. a special “object wrapper” that provides the extra functionality is created, and then is destroyed. That method runs and returns a new
10 Users
0 Comments
53 Highlights
1 Notes
Top Highlights
functions, for example, are objects.
The “object wrappers” are different for each primitive type
They have no corresponding “wrapper objects” and provide no methods.
a special “object wrapper” that provides the extra functionality is created, and then is destroyed.
That method runs and returns a new string (shown by alert). The special object is destroyed, leaving the primitive str alone
Domain
javascript.info
Ready to highlight and find good content?
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.
Start Highlighting