Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#javascript #object #string #syntax
Question
In contexts where a method is to be invoked on a primitive string or a property lookup occurs, what will javascript do?
Answer
JavaScript will automatically wrap the string primitive and call the method or perform the property lookup

Tags
#javascript #object #string #syntax
Question
In contexts where a method is to be invoked on a primitive string or a property lookup occurs, what will javascript do?
Answer
?

Tags
#javascript #object #string #syntax
Question
In contexts where a method is to be invoked on a primitive string or a property lookup occurs, what will javascript do?
Answer
JavaScript will automatically wrap the string primitive and call the method or perform the property lookup
If you want to change selection, open document below and click on "Move attachment"

String - JavaScript | MDN
ings. JavaScript automatically converts primitives to String objects, so that it's possible to use String object methods for primitive strings. In contexts where a method is to be invoked on a primitive string or a property lookup occurs, <span>JavaScript will automatically wrap the string primitive and call the method or perform the property lookup. var s_prim = 'foo'; var s_obj = new String(s_prim); console.log(typeof s_prim); // Logs "string" console.log(typeof s_obj); // Logs "object" String primitiv

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.