Web / HTML5

W2 JavaScript Patterns for HTML5


9:15 AM - 10:30 AM

Level: Intermediate

John Papa

Principal Developer Advocate


JavaScript gets a bad rap sometimes for easily confused global variables, script files that are thousands of lines long, and mixing html with script code. But it doesn't have to be that way. This session will demonstrate common techniques to separate structure (HTML), behavior (JavaScript) and presentation (CSS) with modern Web development. I'll offer a few tips to make your JavaScript more maintainable, manage namespacing, and demonstrate how to implement various JavaScript patterns.

You will learn:

  • About JavaScript Patterns such as the Revealing Module Pattern
  • How to create clean separation of HTML, CSS and JavaScript
  • How to apply the Single responsibility Principle to JavaScript