

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


7 1.html
7 2.html
7 3.html
All done.
7 4common.js function square(number) { return number * number } 7 4.html
Referencing a file of functions
All done.
7 6.html
function AddZero(i) { if (i<10) {i="0" + i} return i }
// call the Time function
Enter all code examples as separate files and debug. You will likely make typing mistakes and this will cause the code examples to not work properly. Make sure they work properly before you go on to step 2.
Change some aspect of these code examples, either in the html or JavaScript. A change might be the use of a different formula, different output text, or different function call.
Put these files in a folder called JavaScript.
Create a new index.htm file for your new JavaScript folder. This index.htm file would look like the following:
My JavaScript programs ______Name________
7-ยญโ1
7-ยญโ2
etc.
Upload the JavaScript folder to your CartGIS folder in the Public folder in myfolder.
Modify your base index.htm file by adding the following lines: My JavaScript Examples JavaScript Examples
Replace your base index.htm file in your CartGIS folder on myfolder.