I have this code:
let num; while (num == null || num == "") { num = prompt("Write your number: "); }
and i want to know if it's possible to replace the while loop with a function to evaluate the condition into the while loop