Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

print string multiple times in javascript

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

console.log(result);
Comment

PREVIOUS NEXT
Code Example
Javascript :: array destructuring js 
Javascript :: split and convert a string into object 
Javascript :: javascript alert variable 
Javascript :: react big calendar messages 
Javascript :: how to prevent xss attacks in node js 
Javascript :: regex match first result only 
Javascript :: head component nextjs 
Javascript :: js sum digits 
Javascript :: carbon to moment js conversion 
Javascript :: javascript date validation less than today 
Javascript :: json parse in javascript 
Javascript :: async storage react native 
Javascript :: adding element to array javascript 
Javascript :: javascript for...of with Strings 
Javascript :: accessing nested objects in javascript 
Javascript :: react loop through array 
Javascript :: how to remove first element from array in javascript 
Javascript :: use $axios in vuex in nuxt 
Javascript :: includes in js 
Javascript :: javascript add to home screen button 
Javascript :: Get the Last Items in an Array 
Javascript :: deleteicon material ui improt 
Javascript :: how to add abutton component to drawer in react native 
Javascript :: log error line node.js 
Javascript :: jquery vs react 
Javascript :: write hover animation for styled div 
Javascript :: get previous link javascript 
Javascript :: split in javascript 
Javascript :: javascript delete user input value in array 
Javascript :: node .env file example 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =