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 摘要。