mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-13 21:15:35 +08:00
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
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:
parent
4af015a08f
commit
3b756676c4
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user