From cc03ce3d7332457067e320d182307a3fc7285a4e Mon Sep 17 00:00:00 2001 From: wildskyf Date: Wed, 14 Apr 2021 17:40:06 +0800 Subject: remove useless dir="rtl" for zh-TW --- files/zh-tw/web/javascript/guide/grammar_and_types/index.html | 2 +- .../zh-tw/web/javascript/reference/global_objects/array/sort/index.html | 2 +- files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html | 2 +- files/zh-tw/web/javascript/reference/operators/this/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-tw/web/javascript') diff --git a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html index ac059a7f24..a8eafbba5f 100644 --- a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html +++ b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html @@ -675,7 +675,7 @@ and so is foo.'

ECMAScript 2015 introduces a new type of literal, namely template literals. This allows for many new features including multiline strings!

-
var poem =
+
var poem =
 `Roses are red,
 Violets are blue.
 Sugar is sweet,
diff --git a/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html b/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
index 7240184a75..bfb0eb739f 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
@@ -175,7 +175,7 @@ items.sort(function (a, b) {
 
 

compareFunction 可以被陣列中的各個元素多次呼叫。依據 compareFunction 的特性,這將會產生大量運算。越多元素要排序 compareFunction 就越多工作要做,因此選擇使用 map 來排列也就是一個更明智的選擇。作法為先迭代陣列一次來取得排序時所需的值至暫時的陣列,並對此臨時陣列進行排序。然後再迭代臨時陣列來將正確順序之值放入原始陣列中。

-
// the array to be sorted
+
// the array to be sorted
 var list = ['Delta', 'alpha', 'CHARLIE', 'bravo'];
 
 // temporary array holds objects with position and sort-value
diff --git a/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html b/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
index 91be97bc11..1713164868 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
@@ -43,7 +43,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/abs
 
 

Passing an empty object, an array with more than one member, a non-numeric string or {{jsxref("undefined")}}/empty variable returns {{jsxref("NaN")}}. Passing {{jsxref("null")}}, an empty string or an empty array returns 0.

-
Math.abs('-1');     // 1
+
Math.abs('-1');     // 1
 Math.abs(-2);       // 2
 Math.abs(null);     // 0
 Math.abs('');       // 0
diff --git a/files/zh-tw/web/javascript/reference/operators/this/index.html b/files/zh-tw/web/javascript/reference/operators/this/index.html
index e26b592244..503ef720e4 100644
--- a/files/zh-tw/web/javascript/reference/operators/this/index.html
+++ b/files/zh-tw/web/javascript/reference/operators/this/index.html
@@ -71,7 +71,7 @@ f2() === undefined; //true

要從某個語境訪問另一個 this 語境的值,請使用 callapply:

-
// 物件可以被當作call或apply的第一個參數,而this會綁定該物件
+
// 物件可以被當作call或apply的第一個參數,而this會綁定該物件
 var obj = {a: 'Custom'};
 
 // 此屬性a為全域物件
-- 
cgit v1.2.3-54-g00ecf