mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
16 lines
430 B
Markdown
16 lines
430 B
Markdown
---
|
|
date: 2020-09-22
|
|
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);
|
|
```
|