+ 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
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");
+ 3
Ok,thanks for suggestion!!