-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
## true | ||
|
||
- 1 | ||
|
||
--- | ||
|
||
|
||
|
||
## false | ||
|
||
- 0 | ||
|
||
--- | ||
|
||
|
||
|
||
## null | ||
|
||
- null은 자연스럽게 생기지 않음 | ||
- variable 안에 어떤것도 없다는 것을 확실히 알려주기 위해 씀 | ||
|
||
```javascript | ||
const amIFat= null; | ||
// amIFat에 아무것도 채워지지 않은 null 채우는것을 의미 | ||
let something; | ||
console.log(amIFat); | ||
``` | ||
|
||
 | ||
|
||
--- | ||
|
||
|
||
|
||
## Undefined | ||
|
||
- something이라는 var을 만들었지만, 값을 주지 않은 상태 | ||
- 메모리 안에 공간은 있지만, 값은 없는 상태 | ||
|
||
|
||
```javascript | ||
const amIFat= null; | ||
let something; | ||
// something이라는 var을 만들었지만, 값을 주지 않은 상태 | ||
// 메모리 안에 공간은 있지만, 값은 없는 상태 | ||
console.log(something); | ||
``` | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## const | ||
|
||
- cannot be changed | ||
|
||
## let | ||
|
||
- can be changed later | ||
|
||
|
||
|
||
```javascript | ||
const a = 5; | ||
const b = 2; | ||
let myName = "Hanju"; | ||
|
||
console.log(a + b); | ||
console.log(a * b); | ||
console.log(a / b); | ||
console.log("Hello! " + myName); | ||
|
||
myName = "LiJell"; | ||
|
||
console.log("your new name is " + myName); | ||
``` | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.