Skip to content

Commit 72fd976

Browse files
committed
'Random Background Color Changer' docs: README.md update main README steps(1..5) (variation_2)
1 parent 136ecd1 commit 72fd976

3 files changed

Lines changed: 58 additions & 4 deletions

File tree

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,34 @@ In this project, you will help CamperBot build a random background color changer
1010
<summary>
1111
<h4>Description of the Tasks</h4>
1212
</summary>
13+
<details>
14+
<summary>
15+
<h5>Step 1</h5>
16+
</summary>
17+
<p>
18+
CamperBot is trying to build out a random background color changer. But they keep running into issues and need your help to debug the code
19+
</p>
20+
<p>
21+
CamperBot has already added the HTML and CSS for the project. But they are confused as to why none of the styles and content is showing up on the page.
22+
</p>
23+
<p>
24+
When they open up the console they see this message:
25+
</p>
26+
<details>
27+
<summary>
28+
<h5>Example Code</h5>
29+
</summary>
30+
<code>
31+
SyntaxError: unknown: Unexpected token, expected "," (5:2)
32+
</code>
33+
</details>
34+
<p>
35+
Syntax errors are thrown when the JavaScript engine encounters something it can't interpret. In this case, it looks like CamperBot has syntax errors in the <code>darkColorsArr</code> array.
36+
</p>
37+
<p>
38+
Fix the syntax errors in the <code>darkColorsArr</code> array and you should see the content and styles show up on the page.
39+
</p>
40+
</details>
1341
<details>
1442
<summary>
1543
<h5>Step 2</h5>
@@ -39,7 +67,6 @@ In this project, you will help CamperBot build a random background color changer
3967
<p>
4068
Now that the <code>ReferenceError</code> is resolved, the console is displaying the correct results for a random number between <code>0</code> and <code>9</code>. But CamperBot was not expecting to see decimal numbers like these:
4169
</p>
42-
<p>
4370
<details>
4471
<summary>
4572
<h5>Example Code</h5>
@@ -48,7 +75,6 @@ In this project, you will help CamperBot build a random background color changer
4875
<code>2.114596286197641</code><br>
4976
<code>6.040964780197666</code><br>
5077
</details>
51-
</p>
5278
<p>
5379
Update the <code>console</code> statement to print a whole number between <code>0</code> and <code>9</code>.
5480
</p>

__1__step__/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
<a id=top></a>
22

3+
<details>
4+
<summary>
5+
<h4>Description of the task</h4>
6+
</summary>
7+
<h3>Step 1</h3>
8+
<p>
9+
CamperBot is trying to build out a random background color changer. But they keep running into issues and need your help to debug the code
10+
</p>
11+
<p>
12+
CamperBot has already added the HTML and CSS for the project. But they are confused as to why none of the styles and content is showing up on the page.
13+
</p>
14+
<p>
15+
When they open up the console they see this message:
16+
</p>
17+
<details>
18+
<summary>
19+
<h5>Example Code</h5>
20+
</summary>
21+
<code>
22+
SyntaxError: unknown: Unexpected token, expected "," (5:2)
23+
</code>
24+
</details>
25+
<p>
26+
Syntax errors are thrown when the JavaScript engine encounters something it can't interpret. In this case, it looks like CamperBot has syntax errors in the <code>darkColorsArr</code> array.
27+
</p>
28+
<p>
29+
Fix the syntax errors in the <code>darkColorsArr</code> array and you should see the content and styles show up on the page.
30+
</p>
31+
</details>
32+
333
# Random Background Color changer
434

535
Debugging is the process of going through your code, finding any issues, and fixing them.

__3__step__/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<p>
99
Now that the <code>ReferenceError</code> is resolved, the console is displaying the correct results for a random number between <code>0</code> and <code>9</code>. But CamperBot was not expecting to see decimal numbers like these:
1010
</p>
11-
<p>
1211
<details>
1312
<summary>
1413
<h5>Example Code</h5>
@@ -17,7 +16,6 @@
1716
<code>2.114596286197641</code><br>
1817
<code>6.040964780197666</code><br>
1918
</details>
20-
</p>
2119
<p>
2220
Update the <code>console</code> statement to print a whole number between <code>0</code> and <code>9</code>.
2321
</p>

0 commit comments

Comments
 (0)