Using the typeOf JavaScript Operator: an Example