Cours
Se connecterCommencer à apprendre l'IA
Cours
Se connecterCommencer à apprendre l'IA

Discussions Q&R

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
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 Votes
4 Réponses
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 Votes
6 Réponses
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 Vote
3 Réponses
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 Votes
4 Réponses
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 Vote
3 Réponses
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 Votes
1 Réponse
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 Votes
5 Réponses
3rd Mar 2019, 12:38 PM
david chongo
david chongo - avatar
Incorrectly using functions inside loops.
<==1;10;for(varii++)
1 Vote
1 Réponse
12th Jun 2018, 10:36 AM
Carlewis
Carlewis - avatar
Aujourd'hui en vedette
Best language?
0 Votes
Anyone have song names? Comment your favorites here for a project im working on
2 Votes
Bro can you fix yt error?
0 Votes
Need suggestions to learn AI and ML
1 Votes
Need suggestions
0 Votes
Java full stack
0 Votes
Best code for creating games?
0 Votes
Duration of heart refilling
0 Votes
Calculator
0 Votes
Why isn't a linked video not working
0 Votes