mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-23 03:56:23 +00:00
16 lines
413 B
Markdown
16 lines
413 B
Markdown
|
---
|
||
|
id: e250130b-d112-4557-8ac1-77f40608d22c
|
||
|
title: Empty values
|
||
|
---
|
||
|
|
||
|
# Syntax
|
||
|
|
||
|
There are two special empty values, null & undefined that denote the
|
||
|
absence of any meaningful value. They can be used interchangeably and
|
||
|
are an [accident of JavaScripts
|
||
|
design](https://medium.com/@stephenthecurt/a-brief-history-of-null-and-undefined-in-javascript-c283caab662e).
|
||
|
|
||
|
``` javascript
|
||
|
console.log(null == undefined);
|
||
|
```
|