Skip to content

Commit cdca8b9

Browse files
authored
Missing lasagna-master.js
1 parent 114fd04 commit cdca8b9

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

exercises/concept/lasagna-master/lasagna-master.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,62 @@
1010
* ...
1111
* }
1212
*/
13+
14+
15+
/**
16+
* Determines whether the lasagna is done based on the
17+
* remaining time on the timer.
18+
*
19+
* @param {number} time time left on the timer
20+
* @returns {string} cooking status
21+
*/
22+
export function cookingStatus(time) {
23+
throw new Error('Remove this line and implement the function');
24+
}
25+
26+
/**
27+
* Estimates the preparation time based on the number of layers.
28+
*
29+
* @param {string[]} layers
30+
* @param {number} avgPrepTime
31+
* @returns {number} total preparation time
32+
*/
33+
export function preparationTime(layers, avgPrepTime = 2) {
34+
throw new Error('Remove this line and implement the function');
35+
}
36+
37+
/**
38+
* Calculates how many noodles and much sauce are needed for the
39+
* given layers.
40+
*
41+
* @param {string[]} layers
42+
* @returns {Quantities} quantities needed for the given layers
43+
*/
44+
export function quantities(layers) {
45+
throw new Error('Remove this line and implement the function');
46+
}
47+
48+
/**
49+
* Adds the secret ingredient from the ingredient list that a
50+
* friend provided to your ingredient list.
51+
*
52+
* @param {string[]} friendsList
53+
* @param {string[]} myList
54+
*/
55+
export function addSecretIngredient(friendsList, myList) {
56+
throw new Error('Remove this line and implement the function');
57+
}
58+
59+
/**
60+
* Calculates the amounts of ingredients needed for a certain
61+
* amount of portions.
62+
* Assumes the original amounts were meant for 2 portions.
63+
* Does not modify the original recipe.
64+
*
65+
* @param {Record<string, number>} recipe
66+
* @param {number} targetPortions
67+
* @returns {Record<string, number>|{}} recipe with amounts for target portions
68+
*/
69+
export function scaleRecipe(recipe, targetPortions) {
70+
throw new Error('Remove this line and implement the function');
71+
}

0 commit comments

Comments
 (0)