1 哪些行会导致语法错误?
/* 1 */ "use strict;" /* 2 */ let a = 0 /* 3 */ let b = 0 //; /* 4 */ let /* 5 */ c = 0;
2 哪些行会导致语法错误?
/* 1 */ "use strict;" /* 2 */ let personName = "Hagar den skrækkelige"; /* 3 */ let Hägar = "Hägar the Horrible"; /* 4 */ let ä = "Hägar the Horrible"; /* 5 */ let Hägar = "Hagar den skrækkelige";
3 哪些行会导致语法错误?
/* 1 */ "use strict;" /* 2 */ let isOpen = true // or "true" ??? or TRUE ??? /* 3 */ isOpen = 5; /* 4 */ let _isOpen = false; /* 5 */ isOpen = _isOpen
4 哪些行会导致语法错误?
/* 1 */ "use strict;" /* 2 */ let countFiles = 5; /* 3 */ countFiles = countFiles + /* or is it minus?? */ 1; /* 4 */ countFiles = CountFiles * 2; /* 5 */ // const twoFiles = 10; /* 6 */ // const 2Files = 10;