Originally Posted by galaxiesanddust
my class is supposed to be going by the codes that are in our book
YOu aren't alone. It seems that way way too many schools use books that are obsolete. And the sad part about it is that many of these books are relatively new! One published in late 2011 was still teaching document.write() and alert() as acceptable coding techniques.
So long as students don't *DEMAND* that their schools teach them *MODERN* coding, then the schools will continue to allow lazy and incompetent instructors to choose to teach old style coding. So long as the instructors and schools don't DEMAND the publishers produce modern books, the publishers will continue to issue total crap.
I wish you luck.