This is one of the simple Java script program to calculate the square and cube of numbers from 1 to 10 in alert dialogue box. JavaScript dialogue box Tutorial JS Demo