Return To CS 100 Home

Naming Functions And Ids

How do I name my functions and Ids?

The names for your functions and Ids can be almost anything you want. There are a few reserved names such as "name", but if you want to keep them simple, you could just name them "function1()" and "id1"

What is important is that your function and id names match exactly from the JavaScript page to the HTML page.