任意の文字列を繰り返す.js
ES2015(ES6)以降
String.prototype.repeat()とかいうそのまんまのやつがある
code:script.js
"トラ".repeat(3) // Expected Eval Value : {String} "トラトラトラ"
それ以前
hackyですがArray.prototype.join()を使います(?!?!) code:script_legacy.js
Array(3 + 1).join("トラ") // Expected Eval Value : {String} "トラトラトラ"