mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-01 15:02:09 +08:00
fix(curriculum): add missing commas before non-restrictive which clauses (#68105)
Signed-off-by: Umang Pawar <umangpawar2005@gmail.com> Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -196,7 +196,7 @@ In the above example, the `try` block contains the code that might throw an erro
|
||||
|
||||
- The Geolocation API provides a way for websites to request the user's location.
|
||||
|
||||
- The example below demonstrates the API's `getCurrentPosition()` method which is used to get the user's current location.
|
||||
- The example below demonstrates the API's `getCurrentPosition()` method, which is used to get the user's current location.
|
||||
|
||||
```js
|
||||
navigator.geolocation.getCurrentPosition(
|
||||
@@ -210,7 +210,7 @@ navigator.geolocation.getCurrentPosition(
|
||||
);
|
||||
```
|
||||
|
||||
In this code, we're calling `getCurrentPosition` and passing it a function which will be called when the position is successfully obtained.
|
||||
In this code, we're calling `getCurrentPosition` and passing it a function, which will be called when the position is successfully obtained.
|
||||
|
||||
The `position` object contains a variety of information, but here we have selected `latitude` and `longitude` only.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user