The typeof operator has right to level associativity so to use it I just need to type the typeof operator followed by what it is that I want to find the type of. For the most part the typeof operator is fairly straights forward to use but it has a few quirks, so lets get into it.
So if you do need to group then use parentheses otherwise they are not needed.
In most cases the typeof operator works just fine if I want to find out if something is a number, or an object. However if I want to find out what kind of object I am dealing with then in most cases typeof does not help much unless it is a function. The instanceof operator accepts two operands one to the left that is what should be an object, and the other is a constructor function. If the variable or value that is being evaluated is an instance of the constructor then the expression will evaluate to true, else false.
When dealing with an object another way to get the actual constructor name of the object rather than just always getting object is to look at the constructor property.