SyntaxFix
Write A Post
Hire A Developer
Questions
A simple solution would be:
var x = "hello" if(x === x.toString()){ // it's a string }else{ // it isn't }