3
JavaScript and TypeScript Primer
Developers come to the world of web app development via many paths and are not always grounded in the basic technologies that web apps rely on. In this chapter, I introduce the basic features of JavaScript and TypeScript. This is not a comprehensive guide to either language, but it addresses the essentials, and it will give you the knowledge you need to get started.
Preparing for this chapter
To prepare for this chapter, create a folder named primer
in a convenient location. Navigate to the primer
folder and run the command shown in Listing 3.1.
Listing 3.1: Preparing the project folder
npm init --yes
Run the command shown in Listing 3.2 in the primer
folder to install the development packages that are used ...
Get Mastering Node.js Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.