Skip to content

Commit cc079d5

Browse files
committed
fix detail summary formatting
1 parent 325e5c5 commit cc079d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Sometimes you'll need to "drill" down into an object to get the value you want.
5858

5959
<details>
6060
<summary>How would you get the value `"c"` from the list? (Click Here)</summary>
61-
<br>
61+
6262
```js
6363
o.list[2]; //=> "c"
6464
o["list"][2]; //=> "c"
@@ -68,6 +68,7 @@ o['list']['2']; //=> "c"
6868
```
6969

7070
But note that `o.list.2` will *never* work. Why is that?
71+
7172
</details>
7273

7374
## Looping Lists
@@ -118,13 +119,14 @@ When we combine strings together, it's known as "concatenation". Here's an examp
118119

119120
<details>
120121
<summary>""What'll happen when you "quote" a quote?", he asked, helplessly" (Click Here)</summary>
121-
<br>
122+
122123
```js
123124
'this "works"'
124125
"and this'll work"
125126
'but don't do this!' // SyntaxError
126127
"He said \"don't\" do this, but I'm clever" // escape inner quotes with forward slash
127128
```
129+
128130
</details>
129131

130132
We can create *HTML strings* by simpling creating a string containing HTML, but we have to be *very careful*(!):

0 commit comments

Comments
 (0)