Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
JavaScript の例外 "repeat count must be non-negative" は、 String.prototype.repeat() メソッドに count 引数が指定され、その値が負の数であった場合に発生します。
String.prototype.repeat() メソッドを使用しています。 count 引数は、文字列の繰り返し回数を指定します。 これは 0 から正の Infinity 未満の値である必要があり、負の数は使用できません。 有効値の範囲は [0, +∞) のように説明できます。
This page was last modified on 2023年8月18日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.