Repeat a string: Difference between revisions
m
→{{header|JavaScript}} (textual cohesion)
m (→{{header|Lua}}) |
|||
Line 716:
console.log("ha".repeat(5)); // hahahahaha</lang>
See the technique of 'Egyptian Multiplication' described in the Rhind Mathematical Papyrus at the British Museum.
|