CISC 282 Lecture Notes - Lecture 5: Document Object Model, Html Element, Nan

47 views9 pages

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 .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents