Week 4 Outline
- Review first quiz
Here's the page for the last question.
- Review template-based Web page
- Questions on assignment 3?
- Introduction to javascript
Here are some simple examples using Javascript:
Here are some useful tips and references:
- Javascript is case-sensitive. Generally, you will need to
type all commands in lower-case in order for your javascript to
work.
- Be careful where you start and close quotes for creating
literal strings.
- The online
tutorials often use
document.write for output. However, we won't
use that in this class since it's not useful for creating
interactive pages.
- Use javascript comments
to explain
what your javascript code does.
- Most input methods (e.g. prompts and text fields in forms)
produce a string. If you want a number, you may need to convert
the string to a number using parseFloat.
- Discuss Assignment 4
- Practice problem with javascript
Pizza file from class on Thursday