Repeat a string: Difference between revisions
Content added Content deleted
(jq) |
|||
Line 605: | Line 605: | ||
<lang javascript> |
<lang javascript> |
||
console.log("ha".repeat(5)); // hahahahaha</lang> |
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}}== |
=={{header|Julia}}== |