English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Brief the basic data types in Java Scripts. - Computer Applications

Advertisements
Advertisements

Question

Brief the basic data types in Java Scripts.

Answer in Brief

Solution

Every variable has a data type that indicates what kind of data the variable holds. The basic data types in JavaScript are Strings, Numbers, and Booleans.

  1. A string is a list of characters, and a string literal is indicated by enclosing the characters in single or double-quotes. Strings may contain a single character or multiple characters, including whitespace and special characters such as \n (the newline).
  2. Numbers can be integer or floating-point numerical value and numeric literals are specified in a natural way.
  3. Boolean can be any one of two values: true or false. Boolean literals are indicated by using true or false directly in the source code.
shaalaa.com
JavaScript Variables
  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 2. | Page 314
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×