Javascript to generate squares of 1 to n numbers - accepts a number as the input and generates the squares of all 'n' numbers starting from 1
Read this post on krazytech.com