So if you do need to group then use parentheses otherwise they are not needed.
So there is something strange with the typeof operator and the value of null. When the value of null is what is used with the typeof operator the result is object.
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.