<html> <head> </head> <body> <script type="text/javascript"> function numToString(number) { number += ""; return number; } var number = 100; alert(typeof number); number = numToString(number); alert(typeof number); </script> </body> </html>