Skip to content

Commit

Permalink
fix: updated list style to style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
damon314159 authored Jan 18, 2024
1 parent e6bd40c commit 3a7efbb
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions foundations/javascript_basics/fundamentals-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ This section contains a general overview of topics that you will learn in this l
Depending on what kind of work you're doing, you might end up working more with pieces of text rather than numbers. A __string__ is a piece of text... and is a fundamental building block of the language.

Check failure on line 21 in foundations/javascript_basics/fundamentals-2.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Strong style

foundations/javascript_basics/fundamentals-2.md:21:119 MD050/strong-style Strong style [Expected: asterisk; Actual: underscore] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md

Check failure on line 21 in foundations/javascript_basics/fundamentals-2.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Strong style

foundations/javascript_basics/fundamentals-2.md:21:127 MD050/strong-style Strong style [Expected: asterisk; Actual: underscore] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md

1. Read and code along with [yet another MDN tutorial](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Strings) on the topic.
2. Go through [this lesson](https://www.w3schools.com/js/js_string_methods.asp) to learn a bit more about what you can do with strings... be sure to take a peek at [the String Reference](https://www.w3schools.com/jsref/jsref_obj_string.asp) page near the bottom, and do the exercises at the end!
3. Vocabulary time: a __method__ is a bit of functionality built into the language or specific data types. In [the previous W3Schools exercise](https://www.w3schools.com/js/js_string_methods.asp), you've learned about a few methods that can be used on strings, such as `replace` and `slice`. An exhaustive list of methods usable on strings can be found [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).
1. Go through [this lesson](https://www.w3schools.com/js/js_string_methods.asp) to learn a bit more about what you can do with strings... be sure to take a peek at [the String Reference](https://www.w3schools.com/jsref/jsref_obj_string.asp) page near the bottom, and do the exercises at the end!
1. Vocabulary time: a __method__ is a bit of functionality built into the language or specific data types. In [the previous W3Schools exercise](https://www.w3schools.com/js/js_string_methods.asp), you've learned about a few methods that can be used on strings, such as `replace` and `slice`. An exhaustive list of methods usable on strings can be found [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).

Check failure on line 25 in foundations/javascript_basics/fundamentals-2.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Strong style

foundations/javascript_basics/fundamentals-2.md:25:23 MD050/strong-style Strong style [Expected: asterisk; Actual: underscore] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md

Check failure on line 25 in foundations/javascript_basics/fundamentals-2.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Strong style

foundations/javascript_basics/fundamentals-2.md:25:31 MD050/strong-style Strong style [Expected: asterisk; Actual: underscore] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md

### Conditionals

Now it's time for the fun stuff... So far, we haven't done much with our programming that you couldn't do with basic math skills. Sure, we've told our computer how to do the math, which makes it quicker, but the essence of programming is teaching the computer how to make decisions to do more involved things. Conditionals are how we do that.

1. Step one in learning about conditionals is making sure you have a good grasp on [comparisons](http://javascript.info/comparison).
2. [This tutorial](https://www.w3schools.com/js/js_if_else.asp) is a great first glance at conditionals in JavaScript.
3. [This tutorial](http://javascript.info/logical-operators) will teach you about logical operators. A little heads up regarding this reading's tasks: there will be questions where you see `alert()` with a number or string inside the parenthesis. What's happening here will be discussed later in the curriculum. Some of the answers may not make sense now, but they are accurate, and you will understand them as you progress in the curriculum. Don't worry too much about it now!
4. [This article](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals) reinforces the concept and provides several interesting examples of how you could use it building websites.
5. [This article](http://javascript.info/ifelse) covers the same basic concept \(read through it as a review!\) and - more importantly - offers the usual 'tasks' at the bottom of the page!
6. [This article](https://javascript.info/switch) teaches you about the `switch` statement, which is handy when you have multiple conditions.
1. [This tutorial](https://www.w3schools.com/js/js_if_else.asp) is a great first glance at conditionals in JavaScript.
1. [This tutorial](http://javascript.info/logical-operators) will teach you about logical operators. A little heads up regarding this reading's tasks: there will be questions where you see `alert()` with a number or string inside the parenthesis. What's happening here will be discussed later in the curriculum. Some of the answers may not make sense now, but they are accurate, and you will understand them as you progress in the curriculum. Don't worry too much about it now!
1. [This article](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals) reinforces the concept and provides several interesting examples of how you could use it building websites.
1. [This article](http://javascript.info/ifelse) covers the same basic concept \(read through it as a review!\) and - more importantly - offers the usual 'tasks' at the bottom of the page!
1. [This article](https://javascript.info/switch) teaches you about the `switch` statement, which is handy when you have multiple conditions.

### Assignment

Expand All @@ -47,19 +47,20 @@ To get started, create a free replit account and click "Fork" or "Remix" to acce
Note: Feel free to browse the files on the left column to gain familiarity with it.

<div class="lesson-note lesson-note--warning">
<h4>Replit and AI</h4>

#### Replit and AI

Check failure on line 51 in foundations/javascript_basics/fundamentals-2.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Required heading structure

foundations/javascript_basics/fundamentals-2.md:51 MD043/required-headings Required heading structure [Expected: ### Knowledge check; Actual: #### Replit and AI] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md043.md

Replit recently introduced an AI assistant, which is on by default. Before trying any of the exercises, you should first disable it, in order to prevent it from spoiling the exercise. You can do so by clicking on the button labeled AI in the bottom left corner of the code view and then unchecking the "Enable" checkbox.
</div>

- [Exercise 1](https://replit.com/@OdinProject/troubleshooting#troubleshooting.js)
- In this exercise, you will be working out of the file called troubleshooting.js
- In this exercise, you will be working out of the file called `troubleshooting.js`.
- [Exercise 2](https://replit.com/@OdinProject/enter-a-number#script.js)
- You will be working out of script.js, and you will use the console in the 'webview' pane to check your work. To access the console, click the wrench icon, which is located on the right side of the address bar within the 'webview' pane.
- You will be working out of `script.js`, and you will use the console in the 'webview' pane to check your work. To access the console, click the wrench icon, which is located on the right side of the address bar within the 'webview' pane.
- [Exercise 3](https://replit.com/@OdinProject/lets-do-some-math#math.js)
- You will be working out of math.js
- You will be working out of `math.js`.
- [Exercise 4](https://replit.com/@OdinProject/direction-follow#follow.js)
- You will be working out of follow.js
- You will be working out of `follow.js`.

</div>

Expand Down

0 comments on commit 3a7efbb

Please sign in to comment.