Repeat a string: Difference between revisions
jq
(jq) |
|||
Line 605:
<lang javascript>
console.log("ha".repeat(5)); // hahahahaha</lang>
=={{header|jq}}==
<lang jq>"a " * 3' # => "a a a "</lang>
Note that if the integer multiplicand is 0, then the result is null.
=={{header|Julia}}==
|