Skip to content

Commit 1b6b905

Browse files
committed
Updated Types
1 parent 1763d84 commit 1b6b905

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

basics/types.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ The most common types are:
1616

1717
* **Objects**: a representation of a more complex object
1818

19+
* **null**: a variable that contains null contains no valid Number, String, Boolean, Array, or Object
20+
21+
* **undefined**: the undefined value is obtained when you use an object property that does not exist, or a variable that has been declared, but has no value assigned to it.
22+
1923
JavaScript is a *“loosely typed”* language, which means that you don't have to explicitly declare what type of data the variables are. You just need to use the ```var``` keyword to indicate that you are declaring a variable, and the interpreter will work out what data type you are using from the context, and use of quotes.
2024

2125

0 commit comments

Comments
 (0)