Editor Arrow Download Open
<!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){ document.writeln("Employee name: " + name); document.writeln("Employee Salary: " + salary); document.writeln("Employee Allowance: " + allowance); } var name = "Opal Kole"; var salary = 15000; var allowance = 1500; empfun(name, salary, allowance); </script> </pre> </body> </html>
  Preview Arrow