Mini-calculator program in Javascript

Computes and prints square of numbers form 1 to 10!