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> />")
5 Réponses
+ 4
var expression = readLine();
//your code goes here
for (i+1; i<=3; i++){
document.write(expression + "<br>");
}
+ 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..
- 1
Still
- 2
var expression = readLine();
//your code goes here
for (i=1,text=Learning is fun!;i<=3; i++){
console.log (i + text+ "<br/>")
}