मराठी

Write note on types of Operator.

Advertisements

प्रश्न

Write note on types of Operator.

थोडक्यात उत्तर
Advertisements

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 14: Introduction to Javascript - Evaluation [पृष्ठ ३१४]
Advertisements
Share
Notifications



      Forgot password?
Use app×