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();
Numbers inherit from the Number constructor which doesn't have the .toLowerCase method. You can look it up as a matter of fact:
Number
"toLowerCase" in Number.prototype; // false