js repeat from string num code example
Example 1: js repeat from string num
"a".repeat(10)
Example 2: js repeat from string num
Array(11).join("a") // create string with 10 a's: "aaaaaaaaaa"
"a".repeat(10)
Array(11).join("a") // create string with 10 a's: "aaaaaaaaaa"