Skip to content

LaunchCodeEducation/flexpath-modules-code-formatting-intro-to-unit-testing-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flexpath-modules-code-formatting-intro-to-unit-testing-exercises

Exercise overview

The intention of this exercise is to give you more experience working with collections and loops in JavaScript.

Getting Started

  1. Using Visual Studio Code, open the folder flexpath-modules-code-formatting-intro-to-unit-testing-exercises wherever you saved it on your device.
  2. Then open the flexpath-modules-code-formatting-intro-to-unit-testing-exercises/exercises folder. Inside are a collection of folders for each exercise. Exercise instructions are provided to you in .txt files in these folders.
  3. To test your code, you will open up your terminal, and navigate to the specific exercise_[number] folder inside of the larger exercises/ folder where you are working in, using the change directory command cd.
  4. You will then run the command node [filename].js to run whichever file in the folder you are working with, replacing [filename] in the command with the file's actual name.

Exercise solutions are in the /solution folder

 

Summary of JavaScript Concepts Covered in These Exercises

  1. Modules:

    • Understanding ECMAScript Modules (ESM) and CommonJS.
    • Using import and export for ESM and require for CommonJS.
    • Organizing code into separate files and exporting/importing functions and variables.
  2. Package Management:

    • Introduction to Node Package Manager (npm) and managing third-party packages.
    • Creating and configuring package.json using npm init.
    • Installing, managing, and using third-party libraries like chalk.
  3. File System and Relational Databases:

    • Using Node.js to interact with the file system, including reading and writing files.
    • Introduction to relational databases using SQLite and connecting with JavaScript using third-party libraries.
    • Migrating data storage from JSON files to a relational database.
  4. Linting and Code Style:

    • Introduction to ESLint for code linting and enforcing style rules.
    • Configuring ESLint in a project and using prebuilt configurations like Airbnb’s style guide.
    • Automatically fixing linting errors and integrating ESLint into the development workflow.
  5. Unit Testing:

    • Introduction to unit testing and testing frameworks like Jest.
    • Writing and running unit tests to ensure code functionality and quality.
    • Understanding code coverage and its importance in testing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published