...

/

Static vs Dynamic Type Checking

Static vs Dynamic Type Checking

Introduction to Static and Dynamic type checking in JavaScript.

Introduction

JavaScript makes declaring types convenient. The type coercion feature saves us from thinking up types for variables. In fact, sometimes it makes us wonder; how does JavaScript manage to do all this? Also, is this only a JavaScript feature?

To answer that we need to understand two common techniques:

  • Static type checking
  • Dynamic type checking

These two techniques are ...