How to Use Classes in Node.js

Опубликовано: 01 Ноябрь 2024
на канале: JsWiz
33,519
254

Projects in Node.js: https://goo.gl/rT7o2k

Learn how to use the ES6 Class keyword in Node.js by refactoring a server.js file.

Repo: https://goo.gl/valig8

How to Follow Along
1. Download the package.json, views and sever_old.js from the repo.
2. Open a terminal and type: mongod
3. Open another terminal and type: npm install
4. convert server_old into classes

In this video you will learn how to turn an existing simple node.js application into one that uses es6 classes.

Find out how to use the class keyword in javascript as syntactic sugar to existing applications.