JS penggunaan fungsi1

by istiq20

HTML

<!DOCTYPE html>
<html>
    <head>
        <script>
            //Membuat fungsi Hello()
            function Hello(){
                 return alert('Hello Guys')
            }
        
        </script>
    </head>

    <body>
        <script>
            //Memanggil fungsi Hello()
            Hello()
        </script>
    </body>
</html>