The .toLowerCase method is giving me an error when I try to use it on numbers. This is what I have:
.toLowerCase
var ans = 334; var temp = ans.toLowerCase();
.toLowerCase function only exists on strings. You can call toString() on anything in javascript to get a string representation. Putting this all together:
var ans = 334; var temp = ans.toString().toLowerCase(); alert(temp);