Page 14
Lesson 2 Review
Today was a big day, probably the biggest in this set of
lessons.
However, the things you learned today take you a significant
step closer
to the ability to create
JavaScripts that are more than just
cute. For
example,
today's homework assignment is to add a "bookmarks"
feature
to
your do-it-yourself Web browser.
Here are the main
topics we
covered today:
Advanced String
Handling
Including
charAt getting a character at
a certain
position
indexOf getting the position of
a
character
substring getting a piece of
a
string
split splitting a string up into
an
array
Associative Arrays
Another JavaScript
datatype
useful for storing things like
phone books, password lists,
birthdays, and
cookie information
Cookies
How to set them,
read them, and
make them permanent
Tomorrow
we'll
cover
Preloading images to speed up
image
swaps
Creating your own objects and a do-it-yourself
virtual
pet
Getting to hard-to-find objects
Before
closing
the JavaScript book entirely for the day, you can hone your knowledge by
trying
this
homework
assignment.