Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
Help pls
ŠŠ°ŠæŠøŃŠøŃŠµ ŠæŃŠ¾Š³ŃŠ°Š¼Š¼Ń-ŃŠ°Š¹Š¼ŠµŃ, Š² ŠŗŠ¾ŃŠ¾ŃŠ¾Š¹ ŠŗŠ¾Š»ŠøŃŠµŃŃŠ²Š¾ ŃŠµŠŗŃŠ½Š“ ŠøŠ· ŃŃŠµŃŃŠøŠŗŠ° Š±ŃŠ“ŠµŃ ŠøŃŠæŠ¾Š»ŃŠ·Š¾Š²Š°ŃŃŃŃ Š² ŠŗŠ°ŃŠµŃŃŠ²Šµ Š²Š²Š¾Š“Š½ŃŃ Š“Š°Š½Š½ŃŃ , Š° Š² ŠŗŠ¾Š½ŃŠ¾Š»Ń Š±ŃŠ“ŠµŃ Š²ŃŠ²Š¾Š“ŠøŃŃŃŃ ŠŗŠ¾Š»ŠøŃŠµŃŃŠ²Š¾ Š¾ŃŃŠ°Š²ŃŠøŃ ŃŃ ŃŠµŠŗŃŠ½Š“ Š“Š¾ Š¾ŃŃŠ°Š½Š¾Š²ŠŗŠø ŃŠ°Š¹Š¼ŠµŃŠ°. ŠŃŠøŠ¼ŠµŃ Š²Š²Š¾Š“Š½ŃŃ Š“Š°Š½Š½ŃŃ 4 ŠŃŠøŠ¼ŠµŃ Š²ŃŃ Š¾Š“Š½ŃŃ Š“Š°Š½Š½ŃŃ 4 3 2 1 0 my try: while(seconds >= 0){ console.log(seconds + "<br />"); seconds--; }
4 Respostas
+ 3
Your code is good, only this will be enough:
ŠŠ¾Ń ŃŃŠ¾ Š“Š¾ŃŃŠ°ŃŠµŃŠ½Š¾:
while(seconds >= 0){
console.log(seconds);
seconds--;
}
+ 1
JaScript , true...
+ 1
ShAzAM
console.log bydefault add new line so no need of \n or br
0
use "\n" to print new line.
Here is a fixed version of your code:
while(seconds >= 0){
console.log(seconds + "\n");
seconds--;
}