Sunday, August 4, 2013

Did you know strings in JavaScript have a .valueOf() method? If you didn't it is because you mostly don't need to.

I got the following from this:

var str="Hello world!";
document.write(str.valueOf());

No comments:

Post a Comment