Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected some typing error. #141

Merged
merged 1 commit into from Oct 17, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/zh/types/equality.md
Expand Up @@ -18,7 +18,7 @@ JavaScript 是*弱类型*语言,这就意味着,等于操作符会为了比
null == undefined // true
" \t\r\n" == 0 // true

上面的表格展示了强类型转换,这也是使用 `==` 被广泛认为是不好编程习惯的主要原因,
上面的表格展示了强制类型转换,这也是使用 `==` 被广泛认为是不好编程习惯的主要原因,
由于它的复杂转换规则,会导致难以跟踪的问题。

此外,强制类型转换也会带来性能消耗,比如一个字符串为了和一个数组进行比较,必须事先被强制转换为数字。
Expand All @@ -27,7 +27,7 @@ JavaScript 是*弱类型*语言,这就意味着,等于操作符会为了比

严格等于操作符由**三**个等号组成:`===`

不想普通的等于操作符,严格等于操作符**不会**进行强制类型转换。
不像普通的等于操作符,严格等于操作符**不会**进行强制类型转换。

"" === "0" // false
0 === "" // false
Expand Down