Function Programs

Function with two argument


<!DOCTYPE html>
<html>
<body>

<p>Click The Button : Call a function with arguments </p>

<button onclick="myFunction('at','Javacodepoint.com')"> Click Me </button>

<script>
    function myFunction(name, job) {

      alert("Welcome " + name + " " + job + " !");

    }
</script>

</body>
</html>