Lucians Lasagne

I am getting 6 as a result and i don’t know where i am going wrong, have tried different variations but either 37 or 6 is received. What am i doing wrong?

export const PREPARATION_MINUTES_PER_LAYER = 2;
export const EXPECTED_MINUTES_IN_OVEN = 40;

export let remainingMinutesInOven = (actualMinutesInOven) => {
return EXPECTED_MINUTES_IN_OVEN - actualMinutesInOven
};

export let preparationTimeInMinutes = (numberOfLayers) => {
return numberOfLayers * 2
};

export let totalTimeInMinutes = (actualMinutesInOven, numberOfLayers) => {
return actualMinutesInOven + numberOfLayers
};

TEST OUTPUT:
Error: expect(received).toBe(expected) // Object.is equality

Expected: 7
Received: 6

Not everyone can read images. Could you please share your code and the test output using text and a codeblock?

Can you explain, in English, what counts towards the total time?

Found the solution by playing around with preparationTimeInMinutes(numberOfLayers) and actualMinutesInOven. Thank you

1 Like