Print Hello World in JavaScript - HW #02

Here's the code.

<script>
    // 01
    console.log("Hello World!");
   
    // 02
    alert("Hello World!");
   
    // 03
    confirm("Hello World!");
   
    // 04
    prompt("Hello World!");
   
    // 05
    document.write("Hello World!");
</script>


Advertisement
Advertisement

Post a Comment

0 Comments

© Copyright 2024 & 2025 - Team Krope - All right reserved