mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08:00
fix(curriculum): audit editable regions for workshop-calculator (#67755)
This commit is contained in:
parent
3efec3d8c4
commit
263b8f9e03
@ -46,6 +46,7 @@ assert.match(code, /console\.log\(\s*addTwoAndSeven\(\s*\)\s*\)/);
|
||||
function addTwoAndSeven() {
|
||||
return 2 + 7;
|
||||
}
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
@ -53,7 +53,6 @@ function calculateQuotient(num1, num2) {
|
||||
}
|
||||
|
||||
console.log(calculateQuotient(7, 11));
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
@ -58,11 +58,11 @@ function calculateProduct(num1, num2) {
|
||||
|
||||
console.log(calculateProduct(13, 5));
|
||||
|
||||
--fcc-editable-region--
|
||||
function calculateQuotient(num1, num2) {
|
||||
return num1 / num2;
|
||||
}
|
||||
--fcc-editable-region--
|
||||
return num1 / num2;
|
||||
--fcc-editable-region--
|
||||
}
|
||||
|
||||
console.log(calculateQuotient(7, 11));
|
||||
console.log(calculateQuotient(3, 0));
|
||||
|
||||
@ -37,7 +37,6 @@ function calculateSum(num1, num2) {
|
||||
}
|
||||
|
||||
console.log(calculateSum(2, 5));
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user