엄격 모드
-
use strict에 대한 이해 :: 마이구미Javascript 2017. 11. 17. 18:22
이 글은 'use strict' 에 대해 다룬다.단순히 엄격 모드라고 알려진 더 나은 오류 검사를 위한 방법이다.참고 링크 - https://stackoverflow.com/questions/1335851/what-does-use-strict-do-in-javascript-and-what-is-the-reasoning-behind-ituse strict 문서 - https://msdn.microsoft.com/ko-kr/library/br230269(v=vs.94).aspx 'use strict' 즉, 엄격 모드는 ES5부터 새로운 기능이다.Lint를 통한 에러 또는 다른 개발자의 코드를 통해 'use strict' 가 타이핑되어 있는 것을 경험했을 것이다. 엄격 모드를 사용하는 방법은 어떻게 되는가? ..