+ 2

What can you code with six lines of JavaScript?

Make something with 6 Lines of JavaScript code No Additional Html or Additional Css. https://code.sololearn.com/Wc837us7Sli2/?ref=app

31st Jan 2018, 7:35 AM
Rocky
Rocky - avatar
2 ответов
+ 7
please correct your code var x=prompt("Enter the number for table"); var y; if(x!=null&&x!='') for(y=0;y<=10;y++) {document.write(y+"x"+x+"="+y*x+"<br>");} else document.write("Input is empty");
31st Jan 2018, 8:03 AM
code learner
code learner - avatar
+ 3
Ok,thanks for suggestion!!
31st Jan 2018, 9:07 AM
Rocky
Rocky - avatar