Skip to content

looselytyped/refactoring-to-modern-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refactoring to Modern JavaScript workshop 😻

JavaScript now has a yearly release cycle. Every release introduces new features that aim to make us (JavaScript developers) more productive, while making our code succint, expressive, and (potentially) bug-free.

This workshop allows you to explore many of the new features that we use on a daily basis, including

  • let and const
  • Default parameters
  • The new "fat arrow" function syntax
  • Template strings
  • Object and array destructuring and spread
  • The newly added Map/Set data-structures
  • The new class syntax (including static and private member/method declaration and usage)
  • Promises and async/await
  • Enhanced literal additoins
  • Proxies
  • Modules
  • Nullish coalescing and optional chaining operator

This workshop uses tests to verify and validate all of your changes, so you can be confident in your changes as you go about refactoring your code to use modern JavaScript language features.

By the end of this workshop you will be intimately familiar with the newer set of JavaScript features, and ready to dive into your next JavaScript project with confidence.

Setup

You will need a few things installed:

  • Install Git
  • Download and install node per this

Optionally, if you do not a favorite text editor, you can install Visual Studio Code

Then clone this repository in a location of your choice. Then simply:

cd /path/to/this/repository
❯ npm install

To ensure that all is well, simply run npm run test. You should see the following at the bottom of your terminal:

Test Suites: 4 skipped, 13 passed, 13 of 17 total
Tests:       28 skipped, 1 todo, 43 passed, 72 total
Snapshots:   0 total
Time:        2.109 s
Ran all test suites.

You are all set!

License

Copyright (c) 2022 Raju Gandhi

Distributed under the MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published