Skip to content

Commit 6656992

Browse files
committed
Highlight how many functions students should be writing
1 parent 1fcbaff commit 6656992

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ JavaScript Arithmetic Lab
1111

1212
In this lab, we're going to practice writing functions and manipulating numbers in JavaScript. First, though, we need to go over some basic math. In this lab, we're going to learn about various arithmetic operators. What's an operator, you say? It's a symbol that _operates_ on one or more (usually two) objects — `+` is a good example. The `+` operator says "add what's to the left of `+` and what's to the right of `+` together." Easy-peasy!
1313

14+
As you read through this lesson, you're going to be adding your solutions to `index.js`. You'll write a total of eight functions; use the results of running `learn test` in your IDE to guide you towards the right function names and functionality.
15+
1416
## Basic Math
1517

1618
The most fundamental math operations work as one might expect in JavaScript: `+` adds two numbers; `-` subtracts one number from another; `*` multiplies two numbers; and `/` divides one number by another. For example (as usual, follow along in console!)
@@ -22,7 +24,7 @@ The most fundamental math operations work as one might expect in JavaScript: `+`
2224
5.0 / 2.5 // 2
2325
```
2426

25-
At this point, we can fix the first few broken tests: we can define functions `add()`, `subtract()`, `multiply()`, `divide()` in `index.js`.
27+
At this point, we can fix the first _four_ broken tests: we can define functions `add()`, `subtract()`, `multiply()`, `divide()` in `index.js`.
2628

2729
## Math + Assignment
2830

@@ -111,7 +113,7 @@ console.log(number) // 5
111113

112114
**Because these methods are more explicit, prefer `+=` to `++` and `-=` to `--` (usually).**
113115

114-
Okay, now we're ready to write solutions for `inc(n)` and `dec(n)`.
116+
Okay, now we're ready to write solutions for the next two functions: `inc(n)` and `dec(n)`.
115117

116118
## Parsing Numbers
117119

@@ -155,7 +157,8 @@ Unlike `parseInt()`, `parseFloat()` accepts only a single argument, the thing to
155157
parseFloat('80.123999') // 80.123999
156158
```
157159

158-
You're now ready to solve the final tests in this lab, `makeInt(n)` and `preserveDecimal(n)`.
160+
You're now ready to solve the final two tests in this lab, `makeInt(n)` and `preserveDecimal(n)`.
161+
159162

160163
## Resources
161164

0 commit comments

Comments
 (0)