Skip to content
 
 

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coursework

Like learning a musical instrument, programming requires daily practice.

Setting up your code editor

There are some tools that will help you to write code. One of these, Prettier, formats your code, making it easier for you and others to read.

1. Using prettier

2. Enable formatting on save

Running the code/tests

The files for the mandatory/extra exercises are intended to be run as jest tests.

  • Once you have cloned the repository, run npm install once in the terminal to install necessary dependencies.
  • To run the all tests, run npm test
  • To run the tests in a specific file (for example writer.js), run "npm test -- --testPathPattern=writer" (Remember, you can use tab-completion to get files relative to the current directory, so mTab ↹/1-Tab ↹ will autocomplete get you the test file starting with 1-)

For more information about tests, look here:

https://syllabus.codeyourfuture.io/guides/intro-to-tests

Instructions for submission

For your homework, we'll be using tests to check your answers. The tests will assert that your functions behave in the correct way. A failing test ❌ indicates that a function is not behaving correctly; a passing test ✅ indicates that your function is behaving correctly.

  1. Complete the challenges in each file and save it once you're happy with your changes
  2. Run the script to check the results against the tests - all tests should read PASSED if you completed the challenges correctly. If a test reads FAILED, find the associated test to identify which function failed and fix it.
  3. Raise a PR once you're happy with the quality of your code

Tasks

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages