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
A String object can always be converted to its primitive counterpart with the [...] method.
Answer

Tags
#javascript #object #string #syntax
Question
A String object can always be converted to its primitive counterpart with the [...] method.
Answer
?

Tags
#javascript #object #string #syntax
Question
A String object can always be converted to its primitive counterpart with the [...] method.
Answer
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
A String object can always be converted to its primitive counterpart with the valueOf() method.

Original toplevel document

String - JavaScript | MDN
eval(s2)); // returns the string "2 + 2" For these reasons, code may break when it encounters String objects when it expects a primitive string instead, although generally authors need not worry about the distinction. <span>A String object can always be converted to its primitive counterpart with the valueOf() method. console.log(eval(s2.valueOf())); // returns the number 4 Note: For another possible approach to strings in JavaScript, please read the article about StringView — a C-like repre

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.