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

Why Commenting/uncommenting Alert() In Constructor Toggles Variable As Part Of The Obj Instances

In the following code, if I comment //alert('Your Name is: ' +fname); in the constructor fu… Read more Why Commenting/uncommenting Alert() In Constructor Toggles Variable As Part Of The Obj Instances

Within The Standard Javascript Es6 Environment, When Is .tostring() Ever Called?

I only found that the time .toString() is called is with string concatenation and string interpolat… Read more Within The Standard Javascript Es6 Environment, When Is .tostring() Ever Called?

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()?