// 输出 7 console.log("my favorite number is: " + MY_FAV);
// 尝试重新声明会报错 const MY_FAV = 20;
// MY_FAV 保留给上面的常量,这个操作会失败 var MY_FAV = 20;
// 也会报错 let MY_FAV = 20;
// 注意块范围的性质很重要 if (MY_FAV === 7) { // 没问题,并且创建了一个块作用域变量 MY_FAV // (works equally well with let to declare a block scoped non const variable) let MY_FAV = 20;
// MY_FAV 现在为 20 console.log('my favorite number is ' + MY_FAV);
// 这被提升到全局上下文并引发错误 var MY_FAV = 20; }
// MY_FAV 依旧为7 console.log("my favorite number is " + MY_FAV);
scaffold 英[ˈskæfəʊld] 美[ˈskæfoʊld] n. 脚手架; <史>断头台; [例句]Moore ascended the scaffold and addressed the executioner. 穆尔走上断头台,和刽子手说话。
2017-12-05
stumbled 英 [ˈstʌmbl] 美 [ˈstʌmbəl] v. (不顺畅地) 说( stumble的过去式和过去分词 ); 跌跌撞撞地走; 绊脚; (说话、演奏等) 出错; [例句]She stumbled and fell, scraping her palms and knees. 她绊了一下摔倒了,手掌和膝盖都蹭破了。
*reserved 英[rɪˈzɜ:vd] 美[rɪˈzɜ:rvd] adj. 预订的; 矜持的; 储藏着的; v. 保留[储备]某物( reserve的过去式); [例句]He was unemotional, quite quiet, and reserved 他感情淡漠,沉默寡言,性格内敛。
keyword 关键字 reserved word 保留字
literal 英[ˈlɪtərəl] 美[ˈlɪtərəl] adj. 照字面的; 原义的; 逐字的; 平实的,避免夸张; n. [印] 错排,文字上的错误; [例句]In many cases, the people there are fighting, in a literal sense, for their homes. 很多情况下,那里的人们是真刀真枪地在为家园而抗争。
anonymous 英[əˈnɒnɪməs] 美[əˈnɑ:nɪməs] adj. 匿名的; 无名的; 假名的; 没有特色的; [例句]You can remain anonymous if you wish 你愿意的话可以不透露姓名。