Metric-Imperial Converter - invalid number

Hello,
I am having problems with passing the 2 following test:

  • If the number is invalid, returned will be 'invalid number' .
  • If both the unit and number are invalid, returned will be 'invalid number and unit' .

I’ve tried numerous attempts at it but to no avail, any help is appreciated.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36.

Challenge: Metric-Imperial Converter

Link to the challenge:

There was another topic with similar problem, conclusion from it was that glitch is doing some additional processing of requested url, that’s affecting tests. Take a look:

Thank you for the reply, I just imported the project to replit and submitted and it works.

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