Skip to content

Commit

Permalink
Update fundamentals-1.md
Browse files Browse the repository at this point in the history
change `max` to `MAX` (as it was the constant specified in the tutorial). If this was done intentionally to implicitly show that variable names are case-sensitive, then this is understandable, but it seems unintentional here.
  • Loading branch information
Tclack88 committed Oct 16, 2023
1 parent c3ffab8 commit af63960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foundations/javascript_basics/fundamentals-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ Try the following exercises (and don't forget to use `console.log()`!):
* and this: `let b = 7 * a` (returns `undefined` \*) and then `console.log(b)`
5. You should be getting the hang of this by now... try this sequence:
* Declare a constant variable `MAX` with the value `57`
* Set another variable `actual` to `max - 13`
* Set another variable `percentage` to `actual / max`
* Set another variable `actual` to `MAX - 13`
* Set another variable `percentage` to `actual / MAX`
* If you type `percentage` in the console and press <kbd>Enter</kbd> you should see a value like `0.7719`
6. Take a few minutes to keep playing around with various things in your script tag. Eventually, we will learn how to actually make those numbers and things show up on the webpage, but all of this logic will remain the same, so make sure you're comfortable with it before moving on.

Expand Down

0 comments on commit af63960

Please sign in to comment.