Skip to content Skip to sidebar Skip to footer
Showing posts with the label Tostring

Are Javascript Template Literals Guaranteed To Call Tostring()?

const num = 42 const str = `My number is ${num}` In this code what guarantee do I have about the c… Read more Are Javascript Template Literals Guaranteed To Call Tostring()?

{}.tostring() Uncaught Syntaxerror: Unexpected Token

when I try it in chrome dev tools, it shows Uncaught SyntaxError: Unexpected token . However if wh… Read more {}.tostring() Uncaught Syntaxerror: Unexpected Token