Skip to content

Latest commit

 

History

History
71 lines (39 loc) · 2.27 KB

README.md

File metadata and controls

71 lines (39 loc) · 2.27 KB

Modern JavaScript

🤖 Modern JavaScript: In-session Refactoring Lab

Instructions

On your own, in groups or in pairs, work through the JavaScript files and refactor them using the suggested modern JavaScript method specified in the document.

You will need to fork and clone this repository to work through the solutions.

✅ Be sure to read the accompanying instructions in the md files

✅ If the exercise has tests, be sure to check the tests still pass after you've refactored the code! (💡 To do this, run npm test!)

✅ Once completed, be ready to explain what you did back to the rest of the cohort.

Contents

We recommend working through the files in the order below:

  1. Functions

  2. Variables

  3. Default Parameters

  4. Destructuring Arrays

  5. Destructuring Objects

  6. Rest Parameters

  7. Spread Syntax

  8. Template Literals

  9. Ternaries

  10. Imperative vs Declarative Programming

Getting started

👉 Fork and then clone this repo to your local computer

To install dependencies run:

npm install

To run the tests:

npm test

To run one specific test:

npm test file_name.js

Tips and Tricks

💡 If you've not heard of the modern JavaScript method before, that's great! Google and read about the method before having a go at implementing it. The MDN docs are a great resource.

💡 Your understanding is the most important thing, so take your time.

💡 Researching, writing notes and solving problems yourself will help you learn the most.

💡 If you get stuck, ask one of the Tech Coaches and we'll jump in and help! 🙌