What would be the proper Javascript and HTML coding for this question?

World

New member
I am having a hard time to figure out the correct coding for this question in my assignment. Need to use Javascript and HTML. here is the question and variables.
suggestions please.

Using only the programming techniques you have learned so far, write a script that calculates the squares and cubes of the numbers from 0 to 10 and outputs XHTML text that displays the resulting values in an XHTML table format, as follows.
Numbersquarecube
000
111
248
3927
41664
525125
636216
749343
864512
981729
101001000
The result must be dynamically generated, and scripts must be embedded in an HTML document.

Thanks all
 
Back
Top