Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- react
- ngrok설치
- getModifierState
- CSS
- dart 변수
- github
- react typescript
- Git
- SCSS
- There isn’t anything to compare
- rewrites
- styled components
- react env
- createGlobalStyle
- npm styled-reset
- github io
- fetch
- API 토큰
- bootstrap
- input type=file
- nextjs .env
- icon
- typescript react
- git lab
- ngrok실행
- next.js css
- API token
- 컨디셔널 렌더링
- nextjs 설치
- nextjs
Archives
- Today
- Total
목록use strict (1)
꾸준히 성장하는 개발자
[JavaScript] use strict
strict 모드(엄격 모드)를 활성하는 문구 JavaScript에서 오류가 발행할 수 있는 부분들을 미리 잡아주고 고쳐줄 수 있게 하여 문제를 더 빨리 해결할수 있도록 해준다. 사용방법 1. 전역 스코프에서 strict 모드를 사용 script 안에 최상단에 'use strict' 또는 "use strict" 작성해준다. 'use strict' let a= 10 function b(){...} 꼭 최상단에 써져 있어야 한다. 위에는 주석만 작성이 가능하고 그 외 다른 명령어가 작성되면 실행이 되지 않는다. 2. strict모드를 실행하고 싶은 특정 함수 안에서 실행 가능하다 // strict 모드 활성화 함수 function c(){ 'use strict' console.log(this) }; c();..
JavaScript
2022. 10. 18. 14:23