Daily Coding Challenge - Speed Check

Tell us what’s happening:

I’m not sure what i am doing wrong here but this code returns the values when i run it in vscode but not here? Am I not supposed to use if statements?

Your code so far

function speedCheck(speedMph, speedLimitKph) {
  conv = Math.round(speedMph * 1.60934);
  if (conv <= speedLimitKph){
    return "Not Speeding"
  }
  else if (conv <= speedLimitKph + 5){
    return "Warning"
  }
  else if (conv > speedLimitKph + 5){
    return "Ticket"
  }
  return speedMph;
};


Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Daily Coding Challenge - Speed Check
https://www.freecodecamp.org/learn/daily-coding-challenge/2025-12-15

if you try to call the function you should see an error about something not being defined, you should always call the function for debugging purposes

the editor is in strict mode: Strict mode - JavaScript | MDN