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 13:37:23 +00:00
committed by GitHub
parent 2edc0ffed0
commit a073867f60
7 changed files with 8 additions and 8 deletions
@@ -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--
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);