CISC 282 Lecture Notes - Lecture 5: Document Object Model, Html Element, Nan
Document Summary
Javascript: more syntax and using events null and undefined: null = nothing, no value, undefined = confusion, whats this?", all declared variables have undefined as an initial value. Handy things: typof item or typeof(item)- returns the type name of item as a string, date = object with timing functions, ex: var localtime = new date() Operators: boolean operators same as java ||, &&, !x, equivalence. , !==, === (last 2 are strictly (not) equal to: == will convert types, === wont. Functions: too many parameters: ignored, too few parameters: undefined. Variable scope local vs global: global vars can be implicitly" declared inside a function. Arrays dynamic some entries may be undefined. * semicolons are optional but use them anyway. In firefox: select web console from the developer menu, displays errors not shown by the browser, most web browsers have a developer"s console .