node.js로 작업하고 있으며 내 js 파일 중 하나에서 사용 const하고 "strict mode"있습니다. 실행하려고 할 때 오류가 발생합니다.
SyntaxError: Use of const in strict mode.
가장 좋은 방법은 무엇입니까?
편집하다:
'use strict'
const MAX_IMAGE_SIZE = 1024*1024; // 1 MB
var. 세미콜론 추가'use strict';