A factory sensor measures humidity in percent. Write a function checkHumidity(percent). If the humidity is above 70, throw an Error with any message. If the humidity is fine, the function returns nothing.
checkHumidity(45)Returns undefined
checkHumidity(70)Returns undefined
checkHumidity(80)Throws ErrorcheckHumidity(45)checkHumidity(70)Hidden tests run on Submit.