javascript-tutorial / javascript-tutorial/en.javascript.info

Consider to clarify "use strict" concept

未关闭 适合新手
#3,853 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
HTML
星标
25.5k
派生
4k
PR 合并指标
30 天内没有已合并 PR

描述

Hello

About "use strict" in https://javascript.info/strict-mode is indicated:

> This was the case until 2009 when ECMAScript 5 (ES5) appeared. It added new features to the language and modified some of the existing ones. _To keep the old code working, most such modifications are off by default. You need to explicitly enable them with a special directive: "use strict"_

The italic part is not very clear (I read the spanish version too), it gives the idea that "use strict" enables the old mode code

Of course in https://javascript.info/javascript-specials#strict-mode is more clear with:

> _To fully enable all features of **modern JavaScript**, we should start scripts with "use strict"._

Thank you

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 javascript.info/strict-mode 和 javascript.info/javascript-specials#strict-mode 中关于严格模式的部分开始,并比较其中引用的解释。明确斜体句子的含义,使其不会暗示 "use strict" 会启用遗留行为;当解释与更清晰的措辞一致并消除歧义时,即可视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
documentation
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。