Sum of numbers from 1 to 300

The code that generates these numbers is not shown on the web page. Save the page and edit it with a simple text editor to see the code. Or, select View, Source.
JavaScript tutorial at w3schools.com