Advertisements
Advertisements
प्रश्न
Write note on types of Operator.
संक्षेप में उत्तर
उत्तर
The type of operator is used to get the data type (returns a string) of its operand. The operand can be either a literal or a data structure such as a variable, a function, or an object. The operator returns the data type.
Syntax
typeof operand
or
typeof(operand)
typeof returns: boolean, function, number, string, and undefined. The following table summarizes possible values returned by the typeof operator.
shaalaa.com
Javascript Operators and Expressions
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?