Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (49 sloc) 1.87 KB


Critical learning


You know everyday Javascript when you:

  • Use Web Inspector to test your ideas.
  • Run programs.
  • Avoid syntax errors.
  • Avoid global variables.
  • Print values.
  • Define a function.
  • Invoke a function.
  • Use common control flow structures.
  • Instantiate an object.
  • Initialize arrays using [].
  • Initialize empty objects and hashes using {}.
  • Inherit classes using prototype.
  • Iterate over collections.
  • Use CamelCase for prototypes, mixedCase for variables and functions, SCREAMING_SNAKE_CASE for constants, _single_leading_underscore for private variables and functions.
  • Use the module pattern to control method visibility.

You know everyday Javascript web programming when you:

  • Make HTTP requests.
  • Serialize and deserialize JSON.
  • Access and manipulate DOM elements.
  • Register and remove event handlers.
  • Respond to events.
  • Define functions that operate on window or DOM in scope of window.
  • Use data- attributes to bind event handlers.

You know advanced Javavascript web programming when you can:

  • Organize code into Models, Views, and Controllers.
  • Use Pub/Sub with DOM and non-DOM events.
  • Generate GUIDs.
  • Secure your application against cross-domain requests.
  • Persist data locally between page refreshes using localStorage.
  • Use the HTML5 History API.
  • Bind a view element to a Javascript object (usually a model).

Ongoing reference

Jump to Line
Something went wrong with that request. Please try again.