Skip to content

Commit 5bbebe5

Browse files
authored
add node/npm installation instructions to README
1 parent 2b6d126 commit 5bbebe5

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ pip install pytest # install the pytest package
5353
10. Make sure everything works correctly and issue a pull request on github back to the main branch with a message explaining what changes you made in this branch.
5454

5555
11. Accept the pull request into the main branch and delete the `calculator` branch on github.
56-
5756
12. Checkout the main branch, and pull the version of main with the calculator branch merged
5857

5958
```
@@ -67,12 +66,18 @@ pip install pytest # install the pytest package
6766
git branch -D calculator
6867
```
6968
70-
14. Add two more functions, `square` and `cube`. both should take a single number as an argument and return the number raised to the appropriate power.
69+
14. Create a new branch from `main`. In the new branch, add two more functions, `square` and `cube`. both should take a single number as an argument and return the number raised to the appropriate power.
7170
15. Make a function called `square_n_times` that takes two arguments, `number` and `n`. Have the function square the number `n` times and return the sum.
71+
16. PR the new branch to `main`. Your `calcluator.py` in `main` should now have functions for addition, subtraction, multiplication, division, squaring, cubing, and adding squares `n` times.
7272
7373
## Javascript (ungraded)
7474
75-
1. create a new branch in your `assignments` git repo called "js-calculator"
75+
### Install `node`
76+
On WSL: `sudo apt-get install npm`
77+
On Mac: `brew install npm`
78+
79+
### Tasks
80+
1. create a new branch `js-calculator`
7681
2. inside that branch create a new file called `calculator.js`
7782
7883
3. Write (in javascript) a program that defines four functions (multiply, add, subtract, and divide). These functions should not print anything, they should simply perform a mathematical operation on the two arguments and return the value.

0 commit comments

Comments
 (0)