The asterisk box coding challenge
This is an example of applying your knowledge in the concept of loop and conditionals.
The problem is very simple, display a box using asterisk.
This is coded in Node.js
HTML
1 for( var i=0; i<10; i++ )
2 {
3 for( var j=0; j<10; j++ )
4 {
5 if( i==0 || i==9 || j==0 || j==9 )
6 process.stdout.write("*")
7 else
8 process.stdout.write(" ")
9 }
10 process.stdout.write( "\n" )
11 }