JS Functions with Parameters

 
<!DOCTYPE html>
<html>
<head>
    <title>JavaScript</title>
    <script>
        /* Functions With Parameters*/
        function hello(fname= "Yahoo",lname= "Baba") {
            document.write("Hello" + fname + " " + lname + "<br>");
        }
            
        hello("Ram","Singh");
        hello("Salman", "Khan");
    </script>
</head>
<body>
</body>
</html>