Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
k=6; for(var i=0;i<k;i++){ k+=0.5; } alert(i);
for
2 Votes
2 Answers
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 Answers
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 Answers
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 Answers
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 Answers
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 Votes
3 Answers
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 Answer
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 Answers
3rd Mar 2019, 12:38 PM
david chongo
Incorrectly using functions inside loops.
<=
=
1;
10;
for(var
i
i++)
1 Vote
1 Answer
12th Jun 2018, 10:36 AM
Carlewis
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
X velocity
0 Votes
Files not linking in C++
0 Votes
And... Who is the staff then?
2 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 to achieve "Sololearner" achievement?
0 Votes
Why Pro?
0 Votes