If the condition never becomes false, the loop runs forever:
// DON'T RUN THIS - infinite loop!
while (true) {
console.log("Forever")
}
Infinite loops freeze your program. They happen when you forget to update the condition variable:
let i = 0
while (i < 5) {
console.log(i)
// Forgot i++! Loop runs forever
}
Always verify your loop has an exit path.