+ 2

how do you write text instead of numbers in a For loop?

gave the task on JS to write 3 times the word "experssion" will be pulled through the For loop, how can I do it?? I don't see..

28th Oct 2021, 9:50 PM
Darkwood
Darkwood - avatar
7 odpowiedzi
+ 5
Thanks for the downvote to someone that wants to help you😂😂👍👍😅
28th Oct 2021, 10:08 PM
Guillem Padilla
Guillem Padilla - avatar
+ 3
So you want this? for(let i = 0; i < 3; i++) { console.log(“expression”) }
28th Oct 2021, 10:12 PM
Guillem Padilla
Guillem Padilla - avatar
+ 1
I read, I read, but it didn't work out :( that's why I ask you
28th Oct 2021, 10:03 PM
Darkwood
Darkwood - avatar
+ 1
What’s exactly what you don’t understand? The for loop or printing an string? Console.log(50) //Prints a number 50 Console.log(“50”) //Prints a string 50
28th Oct 2021, 10:05 PM
Guillem Padilla
Guillem Padilla - avatar
+ 1
yeah, thank you :D
28th Oct 2021, 10:13 PM
Darkwood
Darkwood - avatar
0
you didn't understand my question by answering the wrong thing at all. I appreciated that. I asked how to do it in the "For" cycle.
28th Oct 2021, 10:09 PM
Darkwood
Darkwood - avatar