JavaScriptDisplay 1 to 10 in JavaScript February 19, 2023 - by Prajwal Rai - Leave a Comment <html> <body> <script> for (var i = 1; i <= 10; i++) { document.write(i + "<br>"); } </script> </body> </html>