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:
Umang Pawar
2026-06-22 13:34:38 +05:30
committed by GitHub
parent a010c69a3d
commit 6888d20441
@@ -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.