I am learning javascript and at the very start of a course. I have tried to work out how to make a diamond of *s
but never get what i want.
*
***
*****
*******
*********
*******
*****
***
*
I am using 9 rows and 9 columns. I have visualised a grid with the *diamond inside but where do I start?
Var=linenum,
cols;
For (linenum=5 && cols=1)
document.writeln(*)
Can anyone point me to some more information that I may be able to understand please?
but never get what i want.
*
***
*****
*******
*********
*******
*****
***
*
I am using 9 rows and 9 columns. I have visualised a grid with the *diamond inside but where do I start?
Var=linenum,
cols;
For (linenum=5 && cols=1)
document.writeln(*)
Can anyone point me to some more information that I may be able to understand please?