Appendix 1: JavaScript Quick Reference
If you aren’t already familiar with JavaScript, this quick reference is intended to provide an overview of the core features of JavaScript you’ll be using within a TypeScript program. Where a feature has been described alongside the TypeScript language, it has been omitted here.
Variables
Variables are used to store the application’s state in JavaScript and can contain data of any type from strings to numbers to objects to functions.
Listing
A1-1
show
s a selection of variables with simple types. Variables can be assigned at the same time as they are declared, in a single statement, or they can be declared and assigned separately. A variable will have the type corresponding to the value that was most recently ...