RosettaCodeData/Task/Repeat-a-string/JavaScript/repeat-a-string-2.js

2 lines
44 B
JavaScript

console.log("ha".repeat(5)); // hahahahaha