Find Class of a variable in Javascript

As we have object.class method in Ruby, to check the class of a variable in Javascript, here is the snippet

var ss = "some string";
alert (typeof ss);  #=> string
alert (typeof pp);  #=> undefined
Sandheep