fix(curriculum): eliminate '/ 1' from steps 12 to 18 of workshop-recipe-ingredient-converter (#64505)

This commit is contained in:
Gary Yeung 2025-12-11 21:37:23 +08:00 committed by GitHub
parent 2edc0ffed0
commit a073867f60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 8 deletions

View File

@ -182,7 +182,7 @@ const gramsResult = convertQuantity("cup")("gram")(2);
console.log(gramsResult);
const adjustForServings = (baseQuantity) => (newServings) =>
(baseQuantity / 1) * newServings;
baseQuantity * newServings;
--fcc-editable-region--

View File

@ -208,7 +208,7 @@ const gramsResult = convertQuantity("cup")("gram")(2);
console.log(gramsResult);
const adjustForServings = (baseQuantity) => (newServings) =>
(baseQuantity / 1) * newServings;
baseQuantity * newServings;
const servingsResult = adjustForServings(4)(6);
console.log(servingsResult);

View File

@ -234,7 +234,7 @@ const gramsResult = convertQuantity("cup")("gram")(2);
console.log(gramsResult);
const adjustForServings = (baseQuantity) => (newServings) =>
(baseQuantity / 1) * newServings;
baseQuantity * newServings;
const servingsResult = adjustForServings(4)(6);
console.log(servingsResult);

View File

@ -206,7 +206,7 @@ const gramsResult = convertQuantity("cup")("gram")(2);
console.log(gramsResult);
const adjustForServings = (baseQuantity) => (newServings) =>
(baseQuantity / 1) * newServings;
baseQuantity * newServings;
const servingsResult = adjustForServings(4)(6);
console.log(servingsResult);

View File

@ -179,7 +179,7 @@ const gramsResult = convertQuantity("cup")("gram")(2);
console.log(gramsResult);
const adjustForServings = (baseQuantity) => (newServings) =>
(baseQuantity / 1) * newServings;
baseQuantity * newServings;
const servingsResult = adjustForServings(4)(6);
console.log(servingsResult);

View File

@ -179,7 +179,7 @@ const gramsResult = convertQuantity("cup")("gram")(2);
console.log(gramsResult);
const adjustForServings = (baseQuantity) => (newServings) =>
(baseQuantity / 1) * newServings;
baseQuantity * newServings;
const servingsResult = adjustForServings(4)(6);
console.log(servingsResult);

View File

@ -191,7 +191,7 @@ const gramsResult = convertQuantity("cup")("gram")(2);
console.log(gramsResult);
const adjustForServings = (baseQuantity) => (newServings) =>
(baseQuantity / 1) * newServings;
baseQuantity * newServings;
const servingsResult = adjustForServings(4)(6);
console.log(servingsResult);
@ -374,7 +374,7 @@ const gramsResult = convertQuantity("cup")("gram")(2);
console.log(gramsResult);
const adjustForServings = (baseQuantity) => (newServings) =>
(baseQuantity / 1) * newServings;
baseQuantity * newServings;
const servingsResult = adjustForServings(4)(6);
console.log(servingsResult);