<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript Argument Function</title>
</head>
<body>
<pre> <!-- Use pre element for work document.writeln() method -->
<script type="text/javascript">
function empfun(name, salary, allowance=1300){
document.writeln("Employee name: " + name);
document.writeln("Employee Salary: " + salary);
document.writeln("Employee Allowance: " + allowance);
}
var name = "Opal Kole";
var salary = 15000;
empfun(name, salary);
</script>
</pre>
</body>
</html>