Issue with cups

Tell us what’s happening:
for(let cups = 1; cups <=numOfCups; cups +=1

I don’t know where cups is not connecting to teaCups?
Your code so far

// Function that returns a string representing a cup of green tea
const prepareGreenTea = () => 'greenTea';

// Function that returns a string representing a cup of black tea
const prepareBlackTea = () => 'blackTea';

Given a function (representing the tea type) and number of cups needed, the
following function returns an array of strings (each representing a cup of
a specific type of tea).
const getTea = (prepareTea, numOfCups) => {
const teaCups = [];

for(let cups = 1; cups <= numOfCups; cups += 1) {
  const teaCup = prepareTea();
return teaCups;

// Only change code below this line
const tea4GreenTeamFCC = null;
const tea4BlackTeamFCC = null;
// Only change code above this line

  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 11; SM-P615) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Understand Functional Programming Terminology

Link to the challenge:

you need to change this, for now they have both a value of null, you need to assign something to make them have the value required

I actually want to know why cups are used

it was the name choosen for a variable in this case, variables can be named in any way

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.