728x90
반응형
var, let, const
- var : function-scoped, 로컬변수
- let : block-scoped, 전역변수, 값을 변경할 수 있음
- const: block-scoped, 전역변수, 값을 변경할 수 없음
참고사이트
https://gist.github.com/LeoHeo/7c2a2a6dbcf80becaaa1e61e90091e5d
728x90
반응형