Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van AI

Q&A Discussies

k=6; for(var i=0;i<k;i++){ k+=0.5; } alert(i);
for
2 Stemmen
2 Antwoorden
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 Stemmen
4 Antwoorden
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 Stemmen
6 Antwoorden
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 Stem
3 Antwoorden
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 Stemmen
4 Antwoorden
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 Stemmen
3 Antwoorden
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 Stemmen
1 Antwoord
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 Stemmen
5 Antwoorden
3rd Mar 2019, 12:38 PM
david chongo
david chongo - avatar
Incorrectly using functions inside loops.
<==1;10;for(varii++)
1 Stem
1 Antwoord
12th Jun 2018, 10:36 AM
Carlewis
Carlewis - avatar
Populair vandaag
Guys I don't know anything about cooding who can help me pls
1 Votes
Decorators in python.
2 Votes
Coding for Cybersecurity
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
Need help
1 Votes
Salut tout le monde
2 Votes
Pointers in c#
1 Votes
Please click me
0 Votes
Can sololearn have multiple inpus&outputs?
3 Votes
Hello !
0 Votes