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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?