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: