• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu

Dyskusje Q&A

k=6; for(var i=0;i<k;i++){ k+=0.5; } alert(i);
for
2 głosów
2 odpowiedzi
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 głosów
4 odpowiedzi
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 głosów
6 odpowiedzi
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 Głos
3 odpowiedzi
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 głosów
4 odpowiedzi
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 głosów
3 odpowiedzi
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 głosów
1 Odpowiedź
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 głosów
5 odpowiedzi
3rd Mar 2019, 12:38 PM
david chongo
david chongo - avatar
Incorrectly using functions inside loops.
<==1;10;for(varii++)
1 Głos
1 Odpowiedź
12th Jun 2018, 10:36 AM
Carlewis
Carlewis - avatar
Popularne dzisiaj
Is this realistic enough?
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Need friends
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
I am a beginner, please teach me how to use Python
0 Votes
Python
1 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
Web Development
0 Votes
Can someone please explain python for me
0 Votes