# while statement The `while` statement creates a loop that executes a specified statement as long as the test condition evaluates to `true`. The condition is evaluated before executing the statement. Visit the following resources to learn more: - [While Statement - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/while) - [The while Loop - CodeGuage](https://www.codeguage.com/courses/js/loops-while-loop)