+ 1

Why dont this work??

var i=0; var g=27; while (i<=666) { document.write(i + g + "<br />"); i+g; }

18th Aug 2018, 6:38 PM
jelger.js
jelger.js - avatar
4 Respostas
+ 1
try "i = i + g;" instead of "i+g;"
18th Aug 2018, 10:24 PM
hinanawi
hinanawi - avatar
+ 1
im not much familar with java but i think you must create another variable to keep sum of 2 numbers var x ; x= i+g; documet.wirte(x +"<br/>"); this might work
18th Aug 2018, 6:53 PM
saeed shadkami
saeed shadkami - avatar
+ 1
thanks!!!
19th Aug 2018, 6:39 AM
jelger.js
jelger.js - avatar
0
your welcome :-)
19th Aug 2018, 6:43 AM
saeed shadkami
saeed shadkami - avatar