|
|
|
@ -2,14 +2,13 @@
|
|
|
|
|
|
|
|
|
|
### Instructions |
|
|
|
|
|
|
|
|
|
Create 4 functions |
|
|
|
|
|
|
|
|
|
- `more` that takes 1 argument and add 1 to it |
|
|
|
|
- `less` that takes 1 argument and subtract 1 to it |
|
|
|
|
- `add` that takes 2 arguments and add them |
|
|
|
|
- `sub` that takes 2 arguments and subtract them |
|
|
|
|
Create 4 functions: |
|
|
|
|
- `more` that takes 1 argument and adds 1 to it. |
|
|
|
|
- `less` that takes 1 argument and subtracts 1 from it. |
|
|
|
|
- `add` that takes 2 arguments and adds them together. |
|
|
|
|
- `sub` that takes 2 arguments and subtracts the second argument from the first. |
|
|
|
|
|
|
|
|
|
### Notions |
|
|
|
|
|
|
|
|
|
- [nan-academy.github.io/js-training/examples/functions](https://nan-academy.github.io/js-training/examples/functions.js) |
|
|
|
|
- [nan-academy.github.io/js-training/examples/primitive-and-operators](https://nan-academy.github.io/js-training/examples/primitive-and-operators.js) |
|
|
|
|
- [Functions](https://nan-academy.github.io/js-training/examples/functions.js) |
|
|
|
|
- [Primitives and Operators](https://nan-academy.github.io/js-training/examples/primitive-and-operators.js) |
|
|
|
|