• Cursos
  • Compilador de CĂłdigo
  • Discutir
  • Preços
  • Teams
Menu

Q&A DiscussÔes

k=6; for(var i=0;i<k;i++){ k+=0.5; } alert(i);
for
2 Votos
2 Respostas
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 Votos
4 Respostas
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 Votos
6 Respostas
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 Voto
3 Respostas
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 Votos
4 Respostas
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 Voto
3 Respostas
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 Votos
1 Resposta
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 Votos
5 Respostas
3rd Mar 2019, 12:38 PM
david chongo
david chongo - avatar
Incorrectly using functions inside loops.
<==1;10;for(varii++)
1 Voto
1 Resposta
12th Jun 2018, 10:36 AM
Carlewis
Carlewis - avatar
Quente hoje
Need a personal tutor
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Fix code
0 Votes
..
1 Votes
How can I turn my .py files to .exe files?
1 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Software to write and run codes
0 Votes
Add lua
0 Votes
Summary please??
0 Votes
How to learn C++ and how long does it take
1 Votes