This is what i have wrote so far.
{
for(j=1;j<=4;j++)
{
var a=prompt(\"Enter a number less than 10\")
if(a>10)
{document.write(\"This number is bigger then 10\")}
else
for(i=1;i<=a;i++)
document.write(\"*\")
document.write(\"<BR>\")
}}
It works. However i need to put,a,b,c,d before each of the number of * that they have in.
So it would look like:
a *
b
and so on.