You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ Infinity
57
57
We can also declare functions that we can reuse, below is [Fizz Buzz](https://en.wikipedia.org/wiki/Fizz_buzz)
58
58
59
59
```javascript
60
-
>var fizzBuzz = input => {
60
+
>const fizzBuzz = input => {
61
61
if (input % 15 === 0) return'FizzBuzz';
62
62
if (input % 3 === 0) return'Fizz';
63
63
if (input % 5 === 0) return'Buzz';
@@ -284,3 +284,31 @@ Let's change the colour of our vehicle with the `_id` of `ObjectId("5d17d5ef55fa
284
284
"colour":"orange"
285
285
}
286
286
```
287
+
288
+
Perfect, now we've got an orange car!
289
+
290
+
Feel free to make up some of your own updates to the documents.
291
+
292
+
293
+
## Querying parkrun Data
294
+
295
+
### Connect to the database
296
+
297
+
We'll need to drop out the current shell and create a new session to a database hosted in [MongoDB Atlas](https://www.mongodb.com/cloud/atlas). Atlas is a SaaS offering of MongoDB provided by MongoDB.
298
+
299
+
To connect to the database run the following command but replace the `<username>` and `<password>` with the given details.
0 commit comments