mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-01 21:01:20 +08:00
fix(curriculum): eliminate '/ 1' from steps 12 to 18 of workshop-recipe-ingredient-converter (#64505)
This commit is contained in:
parent
2edc0ffed0
commit
a073867f60
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user