mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 14:36:22 +00:00
15 lines
413 B
Markdown
15 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);
|
|
```
|