Skip to content

Commit 60a7ebf

Browse files
committed
Fix errors
1 parent 046778c commit 60a7ebf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/javascript.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Alerts work similarly in that you put what you want to display in the alert with
5656

5757
Prompts are alerts that ask for something from the user. You can store this information in a variable, which we'll talk about later in the lecture. Otherwise, it will return a string with what the user inputs.
5858

59-
![prompt()](./images/prompt/png)
59+
![prompt()](./images/prompt.png)
6060

6161
### Comments
6262

@@ -128,7 +128,7 @@ Note: PEMDAS (order of operations) applies in JS math, as well as all other prog
128128
You can do math the traditional way (e.g., `x + y`), but there are also some handy operators you can use. The increment (`++`) and decrement (`--`) operators, otherwise known as examples of unary operators (operation with only one operand), are helpful for quick addition or subtraction by 1. There are also addition, subtraction, multiplication, division, and modulus assignment operators, which do the selected operation but also assign the value after the operation to its variable.
129129
130130
### Strings
131-
When you're manipulating strings, you'll often have to join two strings together. This process is called **concatenation**. There are two good ways that you can concatenate in JS: the plus operator and template strings. There are a few other ways that you can concatenate, but for beginners, we won't recommend them here. Using the plus operator, you're just directly combining two strings in probably the most intuitive way. With template strings, you use backticks (\`) instead of quotes, and in the place of your variable, you surround it with brackets (`{}`) and put a dollar sign in front of it. It's easier to see the surroundings of your variable in template strings, helping code readability.
131+
When you're manipulating strings, you'll often have to join two strings together. This process is called **concatenation**. There are two good ways that you can concatenate in JS: the plus operator and template strings. There are a few other ways that you can concatenate, but for beginners, we won't recommend them here. Using the plus operator, you're just directly combining two strings in probably the most intuitive way. With template strings, you use backticks (\`) instead of quotes, and in the place of your variable, you surround it with brackets (`{}`) and put a dollar sign (`$`) in front of it. It's easier to see the surroundings of your variable in template strings, helping code readability.
132132
133133
There's a lot more on strings, but we won't get into it for the sake of this introduction.
134134
@@ -173,7 +173,7 @@ Alternatively, you can also string together different operations such as not, an
173173
- both conditions being evaluated must be `true` in order for `&&` to return `true`
174174
- only one condition being evaluated has to return `true` in order for `||` to return `true`
175175
176-
![!, &&, and ||](./truthtable.png)
176+
![!, &&, and ||](./images/truthtable.png)
177177
178178
## Loops
179179
What if you have to repeat a task a lot? Let's find more efficient ways to write code.

0 commit comments

Comments
 (0)