JavaScript Strings Repeat a String. Example#. 6. This can be done using the .repeat() method: "abc".repeat(3); // Returns "abcabcabc" "abc".repeat(0); ...
確定! 回上一頁