Skip to content

Commit

Permalink
Merge pull request #123 from LaunchCodeEducation/bug-stomp-6-21
Browse files Browse the repository at this point in the history
Bug stomp 6 21
  • Loading branch information
jwoolbright23 authored Jun 28, 2024
2 parents b10dc1c + 8fae69d commit c7099f8
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 19 deletions.
8 changes: 8 additions & 0 deletions content/assignments/candidate-testing/task-1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ The rest of the tests are for Tasks 2 and 3.
{{% notice blue "Note" "rocket" %}}
Make sure your small app works properly before moving on to task 2.

Run the following command to make sure the app is running without errors, if you do encounter any errors:
1. Revisit the above instructions step by step to ensure you completed all steps in Task 1.
1. If you are still encountering problems, take a look back at [this page]({{< relref "../../../errors-and-debugging/reading/asking-good-questions/index.md" >}}) and reach out to your instructional assistant.

```JavaScript
node index.js
```

This is also a great time to save, commit, and push up your work.
{{% /notice %}}

Expand Down
6 changes: 6 additions & 0 deletions content/assignments/candidate-testing/task-2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ Now that your small app is working, expand it to deal with multiple questions. T
{{% notice blue "Note" "rocket" %}}
Make sure your loops work properly before moving on to task 3.

Run the following command to make sure the app is running without errors:

```JavaScript
node index.js
```

This is also a great time to save, commit, and push up your work.
{{% /notice %}}

Expand Down
2 changes: 1 addition & 1 deletion content/assignments/mars-rover/rover-class/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ console.log(response);

### Rover Tests

Create `spec/rover.spec.js` and write the following tests. Write the code to make them pass in `rover.js`. Remember to use the given phrase as the test description.
Within the `spec/rover.spec.js` file, write the tests below. Make sure to write the code to make them pass in `rover.js`. Remember to use the given phrase as the test description.

**Test 7**

Expand Down
4 changes: 4 additions & 0 deletions content/fetch/exercises/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ Add this preliminary HTML to your `fetch_planets` document:
```
{{% /expand %}}

{{% notice blue Note "rocket" %}}
You should not expect a response. Take note of the error that you see in the console!
{{% /notice %}}

1. Our last task left us with some knowledge about where and how we can use the fetched data, but we don't really want to keep those changes. Instead, how about we use an event to change the planet information we see? Let's move the DOM manipulation to inside a click handler.

```javascript
Expand Down
6 changes: 1 addition & 5 deletions content/fetch/reading/fetching-data/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ Launch Status web page, which we will add weather data to.
```
{{% /notice %}}

{{% notice orange Warning "rocket" %}}
Before going through the `fetch` examples, please know that `fetch` does NOT work in Internet Explorer. [List of alternative browsers](https://browsehappy.com)
{{% /notice %}}

## `fetch` Function

To request the weather data, we will use the `fetch` function. `fetch` is a
Expand Down Expand Up @@ -275,4 +271,4 @@ What is the correct syntax for `fetch`?
1. `fetch("https://api.url").doStuff(...);`
1. `fetch("https://api.url").then(...);`

{{% /notice %}}
{{% /notice %}}
2 changes: 1 addition & 1 deletion content/http/reading/how-the-internet-works/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ When a server sends a file back to a client, that file must physically be sent a

{{% notice blue "Note" "rocket" %}}

You can think of the Internet as a ["series of tubes."](https://www.youtube.com/watch?time_continue=15&v=_cZC67wXUTs) This phrase was used by a U.S. Senator in 2006 and widely mocked. However, we think it's actually a reasonable analogy. TCP/IP allows data to be passed from one tube to another until reaching the final destination.
You can think of the Internet as a "[series of tubes.](https://www.youtube.com/watch?time_continue=15&v=_cZC67wXUTs)" This phrase was used by a U.S. Senator in 2006 and widely mocked. However, we think it's actually a reasonable analogy. TCP/IP allows data to be passed from one tube to another until reaching the final destination.

{{% /notice %}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Functions are powerful tools in any programming language, and JavaScript uses th

We [defined a value]({{< relref "../../../data-and-variables/reading/values-and-data-types/_index.md" >}}) as "a specific piece of data." Some examples are the number `42`, the string `"LC101"`, and the array `["MO", "FL", "DC"]`. *Functions appear to be very different from other keywords we have worked with, they share many core characteristics.

In particular, functions have a data type, similar too other javascript objects. Recall that a **data type** is a group of values that share characteristics, such as strings and numbers. Strings share the characteristics of having a length, while numbers don't. Numbers can be manipulated in ways that strings cannot, via operations like division and subtraction.
In particular, functions have a data type, similar to other javascript objects. Recall that a **data type** is a group of values that share characteristics, such as strings and numbers. Strings share the characteristics of having a length, while numbers don't. Numbers can be manipulated in ways that strings cannot, via operations like division and subtraction.

{{% notice blue Example "rocket" %}}
The data type of the type conversion function `Number` is `function`. In fact, all functions are of type `function`.
Expand Down
18 changes: 11 additions & 7 deletions content/objects-and-math/exercises/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,22 @@ take for each animal to reach 20 steps.

```js {linenos=true}
function fitnessTest(candidates){
let results = [], numSteps, turns;
for (let i = 0; i < candidates.length; i++){
numSteps = 0;
turns = 0;
let results = [], numSteps, turns;

for (let i = 0; i < candidates.length; i++){
numSteps = 0;
turns = 0;

while(numSteps < 20){
numSteps += candidates[i].move();
turns++;
numSteps += candidates[i].move();
turns++;
}

results.push(`${candidates[i].name} took ${turns} turns to take 20 steps.`);
}

return results;
}
```

{{% /expand %}}
{{% /expand %}}
11 changes: 7 additions & 4 deletions content/unit-testing/reading/tdd-in-action/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ returned an object.
### Code Red
Let's run the test! Click the `run >` button in your repl.it.
Let's run the test!

Type in the command `npm run test` to check your test.

You should see an error about `processor.js` not existing. This makes sense, because we have not
created the file yet. We are officially in the Red phase of Red, Green, Refactor!

Expand Down Expand Up @@ -249,8 +252,8 @@ The `id` is the part of the transmission *before* the `"::"`.
The same steps will be followed, even though they are not explicitly listed.

See lines *16 - 19* to see the test added for this requirement. To test
this case `not.toEqual()` was used, which is checking if the two values
are NOT equal. `not.toEqual()` is used to make sure that `result.id`
this case `not.toBeUndefined()` was used, which is checking if the two values
are NOT equal. `not.toBeUndefined()` is used to make sure that `result.id`
is NOT equal to `undefined`. Remember that if you reference a property on an
object that does NOT exist, `undefined` is returned.

Expand Down Expand Up @@ -463,4 +466,4 @@ below. Take your time, you can do it!
1. Return `-1` if more than one `"::"` is found in `transmission`.
1. Do not include the `< >` symbols in the value assigned to `rawData`.
1. Return `-1` for the value of `rawData` if anything besides numbers are
present between the `< >` symbols.
present between the `< >` symbols.

0 comments on commit c7099f8

Please sign in to comment.