0% found this document useful (0 votes)
3K views1 page

Belajar Javascript

The document discusses the different data types in JavaScript including Number, String, Boolean, Null, Undefined, Symbol, and Object. It provides descriptions and examples of each data type.

Uploaded by

rfadillah052
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views1 page

Belajar Javascript

The document discusses the different data types in JavaScript including Number, String, Boolean, Null, Undefined, Symbol, and Object. It provides descriptions and examples of each data type.

Uploaded by

rfadillah052
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

BELAJAR JAVASCRIPT

Tipe data :
- Number: Any number, including numbers with decimals: 4, 8, 1516, 23.42.
- String: Any grouping of characters on your keyboard (letters, numbers, spaces, symbols, etc.)
surrounded by single quotes: ' ... ' or double quotes " ... ". Though we prefer single
quotes. Some people like to think of string as a fancy word for text.
- Boolean: This data type only has two possible values— either true or false (without quotes).
It’s helpful to think of booleans as on and off switches or as the answers to a “yes” or “no”
question.
- Null: This data type represents the intentional absence of a value, and is represented by the
keyword null (without quotes).
- Undefined: This data type is denoted by the keyword undefined (without quotes). It also
represents the absence of a value though it has a different use than null.
- Symbol: A newer feature to the language, symbols are unique identifiers, useful in more
complex coding. No need to worry about these for now.
- Object: Collections of related data.

You might also like