हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

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

Advertisements
Advertisements

प्रश्न

Brief the basic data types in Java Scripts.

संक्षेप में उत्तर

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 14: Introduction to Javascript - Evaluation [पृष्ठ ३१४]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
अध्याय 14 Introduction to Javascript
Evaluation | Q 2. | पृष्ठ ३१४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×