aboutsummaryrefslogtreecommitdiff
path: root/files/id/web/javascript/reference/errors/negative_repetition_count
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/id/web/javascript/reference/errors/negative_repetition_count
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/id/web/javascript/reference/errors/negative_repetition_count')
-rw-r--r--files/id/web/javascript/reference/errors/negative_repetition_count/index.html45
1 files changed, 0 insertions, 45 deletions
diff --git a/files/id/web/javascript/reference/errors/negative_repetition_count/index.html b/files/id/web/javascript/reference/errors/negative_repetition_count/index.html
deleted file mode 100644
index 0ea4bec83a..0000000000
--- a/files/id/web/javascript/reference/errors/negative_repetition_count/index.html
+++ /dev/null
@@ -1,45 +0,0 @@
----
-title: 'RangeError: repeat count must be non-negative'
-slug: Web/JavaScript/Reference/Errors/Negative_repetition_count
-tags:
- - Errors
- - JavaScript
- - RangeError
-translation_of: Web/JavaScript/Reference/Errors/Negative_repetition_count
----
-<div>{{jsSidebar("Errors")}}</div>
-
-<h2 id="Pesan">Pesan</h2>
-
-<pre class="syntaxbox">RangeError: argument out of range
-RangeError: repeat count must be non-negative (Firefox)
-RangeError: Invalid count value (Chrome)
-</pre>
-
-<h2 id="Tipe_error">Tipe error</h2>
-
-<p>{{jsxref("RangeError")}}</p>
-
-<h2 id="Apa_yang_salah">Apa yang salah?</h2>
-
-<p>Metode {{jsxref("String.prototype.repeat()")}} telah digunakan. Ia punya parameter <code>count</code> mengindikasikan jumlah pengulangan string. Ia harus bernilai antara 0 dan kurang dari positif {{jsxref("Infinity")}} dan tidak boleh angka negatif. Kisarannya nilai yang diperbolehkan bisa dijelaskan seperti ini: [0, +∞).</p>
-
-<h2 id="Contoh">Contoh</h2>
-
-<h3 id="Kasus_tak_valid">Kasus tak valid</h3>
-
-<pre class="brush: js example-bad">'abc'.repeat(-1); // RangeError </pre>
-
-<h3 id="Kasus_valid">Kasus valid</h3>
-
-<pre class="brush: js example-good">'abc'.repeat(0); // ''
-'abc'.repeat(1); // 'abc'
-'abc'.repeat(2); // 'abcabc'
-'abc'.repeat(3.5); // 'abcabcabc' (count will be converted to integer)
-</pre>
-
-<h2 id="Lihat_juga">Lihat juga</h2>
-
-<ul>
- <li>{{jsxref("String.prototype.repeat()")}}</li>
-</ul>