Code coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code coach

var expression = readLine(); //your code goes here for (i+1, text=Learning is fun; i<=3; i++){ document.write (i + text + "<br> />")

18th Sep 2022, 5:01 PM
Emmanuel Pena
5 Answers
+ 4
var expression = readLine(); //your code goes here for (i+1; i<=3; i++){ document.write(expression + "<br>"); }
18th Sep 2022, 11:31 PM
BroFar
BroFar - avatar
+ 2
Think about : 1) What is the use of this statement: var expression=readLine() 2) what is i+1 ? i = 1 ? 3) text = Learning is fun vs text = "Learning is fun" console.log() instead of document.write() here... print input text..
18th Sep 2022, 5:25 PM
Jayakrishna 🇮🇳
- 1
Still
18th Sep 2022, 7:22 PM
Emmanuel Pena
- 2
var expression = readLine(); //your code goes here for (i=1,text=Learning is fun!;i<=3; i++){ console.log (i + text+ "<br/>") }
18th Sep 2022, 7:22 PM
Emmanuel Pena