- Notifications
You must be signed in to change notification settings - Fork10
SE Unit 2 Lesson 3 Problem Set: Introduction to JavaScript Functions
License
The-Marcy-Lab-School/problem-set-2_3
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Like last time, there are two parts to this problem set:
- A written response section
- JavaScript small problems1
To complete and submit this problem set, you will...
- Your written response questions live in the
short-response.md
file. Record your answers without removing the original questions. Use complete sentences and style appropriately with markdown. - Your small problems are in the
problems
directory. The directory contains these files:README.md
answers.js
index.html
answers.test.js
The problem prompts are inREADME.md
. You are to write your solutions in theanswers.js
file.You are to write your code inside the existing function declarations.
Example:
// Question 1functionthisIsAnExample(){returntrue;}
I included theindex.html
file for you so that you can run your code in the browser and use Chrome Dev tools.
This is our first problem set withunit tests. Unit Testing is a way to ensure that your code functions as intended by breaking it up into smaller components and testing each part, independently. We will talk more about unit tests in the future. In fact, you will eventually write your own.
For now, just follow these steps to test your code using the tests that I wrote.
- When you are ready to run your first test, run
npm install
in the terminal. Think of this command as "installing" the tests. - Now, each time you want to run tests, run
npm test
in the terminal. When you run the test suite, you will see some helpful information in the output. It will tell you which tests passed and failed and what the expected results of each of the tests were. Only when you have gottenall tests to pass can you submit this assignment. - Commit frequently.
- When you are finished, push your changes to your remote repo and submit the URL thorugh Canvas.
1: Exercises adapted fromLaunch School small problems andCode Wars katas.
About
SE Unit 2 Lesson 3 Problem Set: Introduction to JavaScript Functions
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.