¡@

Home 

javascript Programming Glossary: printwithtype

JavaScript string and number conversion

http://stackoverflow.com/questions/971039/javascript-string-and-number-conversion

the value and the type of the variable passed in function printWithType val document.write ' pre ' document.write val document.write.. long as all the items are strings this works result a b c printWithType result 123 string If they were not strings you could do result.. you could do result a.toString b.toString c.toString printWithType result 123 string Step 2 Convert 123 into 123 result parseInt..