Skip to content

Latest commit

Β 

History

History
71 lines (39 loc) Β· 2.26 KB

File metadata and controls

71 lines (39 loc) Β· 2.26 KB

Modern JavaScript

πŸ€– Modern JavaScript: In-session JavaScript Lab

Instructions

On your own, in groups or in pairs, work through the JavaScript files and re-write 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

βœ… Remember 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 changed 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! πŸ™Œ