Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to repeat string in javascript

let text = 'Hello world!';
let result = text.repeat(4);

console.log(result);
 
PREVIOUS NEXT
Tagged: #repeat #string #javascript
ADD COMMENT
Topic
Name
9+9 =