use strict
by 마라랑랑 2022. 5. 22. 20:19
엄격모드 (use strict)
function func() { 'use strict'; globalVal = 10; console.log(this); return 'hello'; } func();
기존에 무시되던 에러들이 생길 수 있다.
ECMAScript2015 부터 모듈에 strict mode가 적용 가능하다.
참조 타입
2022.05.23
원시 값
리터럴
2022.05.22
식별자
댓글 영역