Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Ăquipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
k=6; for(var i=0;i<k;i++){ k+=0.5; } alert(i);
for
2 Votes
2 RĂ©ponses
23rd Jun 2017, 7:53 AM
islam moheb
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]);
javascript
js
script
3 Votes
4 RĂ©ponses
10th Apr 2023, 11:30 AM
Manshu
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 Votes
6 RĂ©ponses
22nd Sep 2018, 7:49 PM
olbab omer
var x=1; for(var i=0;i<3;i++){ x*=i; } alert(x); //output= 0 //do u have any explanation?
for
var
1 Vote
3 RĂ©ponses
17th Jun 2017, 1:58 AM
islam moheb
why is the answer to this question 12? k=6; for(var i=0; i<k; i++){k+= 0.5; } document.write(i);
12?
answer
is
why
2 Votes
4 RĂ©ponses
17th Nov 2020, 5:10 PM
Francis Woli
function x(){ for(var i = 1; i<=5; i++) { setTimeout(function (){ console.log(i); }, i * 1000); }
javascript
0 Vote
3 RĂ©ponses
8th Dec 2020, 6:21 AM
harsh tiwari
var arr = document. getElementsByTagName(" img "); for(var x=0; x<arr. ; x++) { arr[x]. = "demo.jpg"; }
dom
javascript
-6 Votes
1 RĂ©ponse
24th Oct 2017, 7:28 AM
vignesh rajasekaran
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 Votes
5 RĂ©ponses
3rd Mar 2019, 12:38 PM
david chongo
Incorrectly using functions inside loops.
<=
=
1;
10;
for(var
i
i++)
1 Vote
1 RĂ©ponse
12th Jun 2018, 10:36 AM
Carlewis
Poser une question
Poser une question
Poser une question
Poser une question
Aujourd'hui en vedette
Someone can help me
2 Votes
X velocity
0 Votes
Files not linking in C++
0 Votes
I am a super beginner
0 Votes
I want to make a triangle area calculator ,anybody can teach me
2 Votes
Web Dev
0 Votes
Img & web server or personal info
0 Votes
Pls give me an idea
1 Votes
How this program executes?
0 Votes
How to achieve "Sololearner" achievement?
0 Votes