Skip to content

Commit a89497e

Browse files
author
Rebecca Murphey
committed
cleanup
1 parent 45a0882 commit a89497e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

content/javascript-101/objects.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,4 @@ key-value pair can be written as any valid JavaScript identifier, a string
4040
'some string' : 456,
4141
99999 : 789
4242
};
43-
44-
Object literals can be extremely useful for code organization; for more
45-
information, read Using Objects to Organize Your Code by Rebecca Murphey.
4643
</div>

content/javascript-101/operators.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ Incrementing and decrementing
3333

3434
## Operations on Numbers & Strings
3535

36-
In JavaScript, numbers and strings will occasionally behave in ways you might not expect.
36+
In JavaScript, numbers and strings will occasionally behave in ways you might
37+
not expect.
3738

3839
<div class="example" markdown="1">
3940
Addition vs. concatenation
@@ -53,7 +54,6 @@ Forcing a string to act as a number
5354
console.log(foo + Number(bar));
5455
</div>
5556

56-
5757
The Number constructor, when called as a function (like above) will have the
5858
effect of casting its argument into a number. You could also use the unary plus
5959
operator, which does the same thing:
@@ -65,7 +65,8 @@ console.log(foo + +bar);
6565

6666
## Logical Operators
6767

68-
Logical operators allow you to evaluate a series of operands using AND and OR operations.
68+
Logical operators allow you to evaluate a series of operands using AND and OR
69+
operations.
6970

7071
<div class="example" markdown="1">
7172
Logical AND and OR operators
@@ -82,13 +83,13 @@ Logical AND and OR operators
8283
baz && foo; // returns 1, which is true
8384
</div>
8485

85-
Though it may not be clear from the example, the || operator returns the value
86+
Though it may not be clear from the example, the `||` operator returns the value
8687
of the first truthy operand, or, in cases where neither operand is truthy,
87-
it'll return the last of both operands. The && operator returns the value of
88+
it'll return the last operand. The `&&` operator returns the value of
8889
the first false operand, or the value of the last operand if both operands are
8990
truthy.
9091

91-
Be sure to consult the section called “Truthy and Falsy Things” for more
92+
Be sure to see the section called “Truthy and Falsy Things” for more
9293
details on which values evaluate to true and which evaluate to false.
9394

9495
<div class="note">

0 commit comments

Comments
 (0)