Please enable JavaScript.
Coggle requires JavaScript to display documents.
JavaScript Fundamentals, language, The DOM - Coggle Diagram
-
language
functions
-
-
-
hoisting
-
functions are hoisted, but not the assignments
-
-
-
-
-
-
objects
-
-
-
-
prototypes
prototype properties and methods are defined once for all instances of an object created with the new keyword
-
-
-
variables and data types
-
primitive types
-
Boolean, Number, String, Null, Undefined, Symbol
-
-
-
scope
-
lexical scope
closure
-
-
a function defined within a closure "remembers" or "preserves" the scope in place when it is created
-
scope is defined by the placement of identifiers at design time, not at run time
-
event based
callback functions will still need to "remember: the scope chain that was in place when they were defined, not when they run
-
-
errors
-
JS engine encounters a run-time error, it will throw and exception
The DOM
Document Object
-
-
selection methods
-
-
-
-
-
-
newer querySelector methods allow us to query for DOM elements much the same way we specify CSS styles
return object
-
represents an HTML element in the hierarchy, contained between opening and closing tags
-
-
Events
-
many are initiated by user actions, some are generated by the browser itselt
-
-
-
-
-
modifying the DOM
-
-
creating DOM elements
each node has a variety of "family relations" properties and methods for adding and removing elements
-
-
AJAX
-
AJAX provides web authors with a way to avoid the visual and temporal deficiencies of normal HTTP interactions.
-
-
-