Introduction to JavaScript

nod_

The more time passes, the more PHP looks like JavaScript. Anonymous functions, shorthand array declaration, traits (to some extend). By popular demand from various major Drupal Backend contributors about an introduction to JS, this session will present JavaScript, it's quirks and enough to be dangerous with it. 

Here is a list of things the audience will learn:

  • Assumptions of the JS world (or lack thereof),
  • An understanding of why JS is "weird" and in what way (scope, object model),
  • Which PHP knowledge you can reuse in JavaScript (hint: braces are good, hierarchy is bad),
  • Enough about the DOM to regret listening about it (aka. the reason why every frontend developer is miserable)

We'll be going through an example script that count and restrict the number of chararcters in an input (much like twitter does) to put all those concepts in context.

Session Track

Coding and Development

Experience Level

Beginner

Drupal Version