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

Tostring Does Not Work In Ie

I have a class in javascript which define the toString method,however when I want to print it in th… Read more Tostring Does Not Work In Ie

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

Number Values Changing When Tostring() Applied

I am noticing something very strange when testing one of my functions that checks the validity of n… Read more Number Values Changing When Tostring() Applied