mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 23:49:06 +08:00
fix(curriculum): eliminate '/ 1' from steps 12 to 18 of workshop-recipe-ingredient-converter (#64505)
This commit is contained in:
+1
-1
@@ -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--
|
||||
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user