Javascript Ice Cream Problem. Misunderstanding directions or a problem with the website?

I’m running into an issue where I am getting the correct output for the problem but it is still counting the problem as wrong. It doesn’t give any instruction on how the structure should be (arrow functions, needing to be concatenated, etc.) so I solved it how I thought it should be. My solution is at the bottom, any insight into why this is would be greatly appreciated!

Define an **order() function that announces your ice cream order.

It should take two arguments: the number of scoops and the flavor. It should return the order in this format: "Lemme get [number] scoops of [flavor]!" It should use “scoop” when number is 1 and “scoops” for anything greater.

For example:

// Returns “Lemme get 1 scoop of vanilla!”
order(1, ‘vanilla’);
// Returns “Lemme get 3 scoops of chocolate!”
order(3, ‘chocolate’);

function order(number, flavor) {
    if (number === 1) {
      return `Lemme get ${number} scoop of 
      ${flavor}!`;
    }
    else{
      return `Lemme get ${number} scoops of 
      ${flavor}!`;
    }
  }

// Returns "Lemme get 1 scoop of vanilla!"
console.log(order(1, 'vanilla'));
// Returns "Lemme get 3 scoops of chocolate!"
console.log(order(3, 'chocolate'));

And this is what I get when I hit check answer: We invoked your function with the arguments 1 and "vanilla" and expected it to return "Lemme get 1 scoop of vanilla!" . Instead it returned: "Lemme get 1 scoop of vanilla!"

// Expected Output:
"Lemme get 1 scoop of vanilla!"
"Lemme get 3 scoops of chocolate!"

// Your Output:
"Lemme get 1 scoop of 
      vanilla!"
"Lemme get 3 scoops of 
      chocolate!"
2 Likes