Functional Programming: Learn About Functional Programming

Tell us what’s happening:
Hi,
There appears to be an error with this challenge, from what I can see i have entered the correct answer, but the FCC console displays this message,

‘TypeError: Cannot read property ‘presets’ of undefined’

and the code has to be reset to remove it. I have copied the correct code in directly from the FCC help section and the same error code appears.

Your code so far


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

/*
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 = (numOfCups) => {
const teaCups = [];

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

// Only change code below this line
const tea4TeamFCC = getTea(40);
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36.

Challenge: Learn About Functional Programming

Link to the challenge:

It appears this issue lies with Chrome (Version 80.0.3987.163 (Official Build) (64-bit)), the error doesn’t appear on Firefox.