O'Reilly logo

Pro TypeScript by Steve Fenton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX 1

image

JavaScript Quick Reference

If you aren’t already familiar with JavaScript, this quick reference is intended to provide an overview of the basic core features of JavaScript you’ll be using within a TypeScript program.

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 shows 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required