• Corsi
  • Compilatore di codice
  • Discuti
  • Prezzi
  • Squadre
Menu

Discussioni Q&A

k=6; for(var i=0;i<k;i++){ k+=0.5; } alert(i);
for
2 Voti
2 Risposte
23rd Jun 2017, 7:53 AM
islam moheb
islam moheb - avatar
var arr=[1,4,6,4,2]; for(var i=0; i<3; i++){ arr[i]=arr[i]+arr[i+2]; } document.write(arr[3]);
javascriptjsscript
3 Voti
4 Risposte
10th Apr 2023, 11:30 AM
Manshu
Manshu - avatar
why the output =0 var arr=[1,2,3,4]; var x=1; for(var i=0;i<arr.length ;i++){ x*=i; } alert (x);
js
3 Voti
6 Risposte
22nd Sep 2018, 7:49 PM
olbab omer
olbab omer - avatar
var x=1; for(var i=0;i<3;i++){ x*=i; } alert(x); //output= 0 //do u have any explanation?
forvar
1 Voto
3 Risposte
17th Jun 2017, 1:58 AM
islam moheb
islam moheb - avatar
why is the answer to this question 12? k=6; for(var i=0; i<k; i++){k+= 0.5; } document.write(i);
12?answeriswhy
2 Voti
4 Risposte
17th Nov 2020, 5:10 PM
Francis Woli
Francis Woli - avatar
function x(){ for(var i = 1; i<=5; i++) { setTimeout(function (){ console.log(i); }, i * 1000); }
javascript
0 Voti
3 Risposte
8th Dec 2020, 6:21 AM
harsh tiwari
harsh tiwari - avatar
var arr = document. getElementsByTagName(" img "); for(var x=0; x<arr. ; x++) { arr[x]. = "demo.jpg"; }
domjavascript
-6 Voti
1 Risposta
24th Oct 2017, 7:28 AM
vignesh rajasekaran
vignesh rajasekaran - avatar
What is the output of this code? for(var x =0; x==x; x++) { if(x > 5 && x < 8) { document.write(x); break;} }
js
5 Voti
5 Risposte
3rd Mar 2019, 12:38 PM
david chongo
david chongo - avatar
Incorrectly using functions inside loops.
<==1;10;for(varii++)
1 Voto
1 Risposta
12th Jun 2018, 10:36 AM
Carlewis
Carlewis - avatar
Popolare oggi
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
4 Votes
Guys I don't know anything about cooding who can help me pls
1 Votes
Why can’t I use double “ in python?
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
You’re free to give me your advice! 🚨
1 Votes
Salut tout le monde
1 Votes
How can i isntall modules
1 Votes