const a = 3; let string = "hello"; for (let i = 0; i < a; i++) { string += "world"; } console.log("string", string);