Quick Index
Overview
In this set of drills we'll play with Node.js core concepts. We'll most follow the w3schools reference and Wexler book (specific references provided).
NOTE WELL -- this work does assume you have Node.js installed. If you do not, our course book by Wexler (Lessons 1 or 2) provides guidance as well as the course notes here...
The Drills
General Drill Notes
Complete each of these short drills:
The terms module and package will be used somewhat interchangeably. We'll learn distinctions between the two as we advance. The terms Node and Node.js will be used interchangeably. The terms Browser, web browser and client will be used interchangeably
Submit
Create a ZIP archive file named in the normal way Before archiving, please delete any project "node_modules" sub-directories (when present). Here is why... Copy each project directory (from each drill) into the one archive Please do not nest archives
Reference Guide Modernizations and Notes
The reference materials tend to compress code. As beginners, this can, in some cases, yield a "code blob" effect.
The course notes attempt to use more of an expanded code approach, to offer a different perspective.
Get Programming with Node.js (2019 - Wexler)
These:
npm install <package> -save
npm install <package> -S
📋
Are now equivalent to:
npm install <package>
📋
In other words, the "save" flag is now implicit (the default).
w3schools.com
The url method:
url.parse
is now deprecated , with WHATWG URL API . The guide example(s) will demonstrate.
Also, status codes (e.g. 200) are hard coded into the examples, but we prefer to derive them. The guide examples will demonstrate.
Troubleshooting
CHAP801 <
Core Concepts Drills
> CHAP803