SyntaxFix
Write A Post
Hire A Developer
Questions
.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);