Advanced JavaScript Techniques

There is a lot more to JavaScript than first meets the eye. This course explores the language in forensic detail, shining a light on the dark areas that often confuse and confound JavaScript development teams. If you are writing production JavaScript code, and you need to get it right, then this is the course for you.

What you will learn:

  • Object-oriented programming in JavaScript
  • Managing scope in a large JavaScript application
  • Understanding JavaScript gotchas
  • Using patterns to improve code quality
  • Testing techniques 

Prerequisites:

  • At least 3 months JavaScript Development

Course outline:

  • Function Techniques: Literal functions; Declaration hoisting; Arguments and function overloading; Recursion; Managing this in call-backs; 4 ways to invoke a function
  • Object-Oriented JavaScript: Object literals; Default and guard operators; Property attributes; Understanding prototypes; Enumerating object properties; Adding and deleting properties dynamically
  • Implementing Inheritance in JavaScript: Pseudo-classical, prototypal, and functional inheritance; Mixins; Overriding and super(); Using prototype effectively
  • Array Techniques: Literal arrays; Using length and delete; Using for vs. for in; Associative arrays; Augmenting the array prototype; Multidimensional arrays
  • Managing Scope and Namespaces: Lexical scope; Closures; Revealing Module pattern; Bind; Avoiding polluting the global namespace; Immediately-invoked function expressions (IIFEs); Implementing a robust namespace factory method
  • Asynchronous Programming Patterns: Call-backs with asynchronous methods; Promise/future with deferrable values; The Observable pattern
  • TDD JavaScript: TDD essentials; Overview of testing frameworks; Using Jasmine; Using QUnit

Andy Olsen - author of the course

Andy is a freelance consultant and instructor based in the UK, working mostly in the City of London and Oxford. Andy has been working with .NET since the Beta 1 days and has extensive experience in many facets of .NET development including WCF, WPF, WF, ASP.NET MVC Web development, and mobile applications. Andy has designed and written many Microsoft Official Curriculum courses in the last decade, and has been engaged as author and technical reviewer with Apress on some of their biggest selling books.

Other relevant courses

28. April
3 days
Classroom Virtual
2. April
3 days
Classroom
11. March
4 days
Classroom
24. April
2 days
Classroom