English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Write note on types of Operator.

Advertisements
Advertisements

Question

Write note on types of Operator.

Answer in Brief
Advertisements

Solution

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
  Is there an error in this question or solution?
Chapter 14: Introduction to Javascript - Evaluation [Page 314]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 14 Introduction to Javascript
Evaluation | Q 7. | Page 314
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×