Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript While Loop</title> </head> <body> <script> var i = 1; while(i <= 5) { document.write("<p>The number is " + i + "</p>"); i++; } </script> </body> </html>