You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue in the section 'Object to primitive conversion' under the 'toString/valueOf' here as well as in the summary section
It is implied that while converting Object to string the toString is called first if its not present then vallueOf is called, this is not correct, because if toString is not present javascript calls the Object.prototype's toString method which outputs "[Object Object]"
Issue in the section 'Object to primitive conversion' under the 'toString/valueOf' here as well as in the summary section
It is implied that while converting Object to string the toString is called first if its not present then vallueOf is called, this is not correct, because if toString is not present javascript calls the Object.prototype's toString method which outputs "[Object Object]"
Here is Demo on JsBin https://jsbin.com/vikisihosa/edit?js,output
The text was updated successfully, but these errors were encountered: