fix(curriculum): format code blocks in quiz answers (#62282)
Some checks failed
i18n - Build Validation / Validate i18n Builds (22) (push) Has been cancelled
CI - Node.js / Lint (22) (push) Has been cancelled
CI - Node.js / Build (22) (push) Has been cancelled
CI - Node.js / Test (22) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (22) (push) Has been cancelled
i18n - Download Client UI / Client (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, dev) (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, org) (push) Has been cancelled

Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Jatin_Mehta 2025-09-20 23:23:34 +05:30 committed by GitHub
parent 4af015a08f
commit 3b756676c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -500,9 +500,7 @@ Which of the following examples exports the `calculateSum` function from a `util
export default function calculateSum(a, b) {
return a + b;
}
```
```js
// app.js
import { calculateSum } from './utils.js';
console.log(calculateSum(2, 3));
@ -515,9 +513,7 @@ console.log(calculateSum(2, 3));
export function calculateSum(a, b) {
return a + b;
}
```
```js
// app.js
import calculateSum from './utils.js';
console.log(calculateSum(2, 3));
@ -530,9 +526,7 @@ console.log(calculateSum(2, 3));
function calculateSum(a, b) {
return a + b;
}
```
```js
export default calculateSum;
// app.js
@ -547,9 +541,7 @@ console.log(utils.calculateSum(2, 3));
export function calculateSum(a, b) {
return a + b;
}
```
```js
// app.js
import { calculateSum } from './utils.js';
console.log(calculateSum(2, 3));