mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(learn): correct editable region in workshop-calculator (#65293)
This commit is contained in:
+3
-3
@@ -38,9 +38,9 @@ assert.match(code, /return\s*(2\s*\+\s*7|7\s*\+\s*2)\s*;?/);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function addTwoAndSeven() {
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
function addTwoAndSeven() {
|
||||
|
||||
}
|
||||
--fcc-editable-region--
|
||||
```
|
||||
|
||||
@@ -52,6 +52,7 @@ function addTwoAndSeven() {
|
||||
}
|
||||
|
||||
console.log(addTwoAndSeven());
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
+3
-3
@@ -23,9 +23,9 @@ assert.equal(calculateSum(5, 5), 10);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
--fcc-editable-region--
|
||||
function calculateSum(num1, num2) {
|
||||
|
||||
}
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
}
|
||||
```
|
||||
|
||||
@@ -59,11 +59,9 @@ function calculateProduct(num1, num2) {
|
||||
console.log(calculateProduct(13, 5));
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
function calculateQuotient(num1, num2) {
|
||||
return num1 / num2;
|
||||
}
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
console.log(calculateQuotient(7, 11));
|
||||
|
||||
Reference in New Issue
Block a user