Hi, I’m working on this small project where I’m asking the user to enter a temperature in kelvin. I’ve completed it, but I wanted to go a step further and implement an input validation.
kelvin = prompt(“What is the temperture in Kelvin today?”)
I’m not sure if the code is correct because I just created it using my java knowledge, but I’m new to java script.
When I run the code it asks me for an input, but no matter what I enter it keeps asking me for an input. Also it freezes my entire browser, so i have to exit my browser.