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