The various type systems for JavaScript take different approaches, but all of them serve the goal of defining different data types for an application and referencing them in the source code.