Skip to content

Commit

Permalink
Update study 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ho0010 authored Sep 18, 2024
1 parent 4655ac6 commit 5ce435e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions study/READ.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
"0" == []; //false
```

```
암묵적 타입 변환을 잘 생각해보면 됩니다
1. 빈 배열 []은 primitive 값으로 변환될 때 0(Number)이 됩니다.
2. 문자열 “0”이 Number 0으로 변환됩니다.
3. 먼저 []을 primitive 값으로 변환하려고하기 때문에 빈 문자열 “”이 됩니다. 문자열 “0”와 빈문자열 “”를 비교하게 되어 false가 나옵니다.
```

<br />

Expand Down

0 comments on commit 5ce435e

Please sign in to comment.