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.
- 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).
- Numbers can be integer or floating-point numerical value and numeric literals are specified in a natural way.
- 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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?