Output can be displayed in different ways using JS. Using window.alert( ) This function is used to display a message alert. <!DOCTYPE html> <html> <body> <h1>Code Projects</h1> <p>Projects, Tutorials and More </p> <script> window.alert("ALERT"); </script> </body> </html> Output : Using…