rn4 js4
rn4 js4
DOCTYPE html>
<html>
<head>
<title>Experiment 4</title>
<style>
body
font-family: Ariel;
margin: 300px;
</style>
</head>
<body>
padding:20px">Javascript Function</div><br><br>
</div><br><br>
<div onclick="displayReturnValue()"
Value</b></div><br><br>
</div><br><br>
<script>
function noarg()
function arg(var1)
function displayReturnValue()
function returnval(var2)
var message = "<strong><u>Function with " + var2 + "Value</u ></strong > <br><br>A function with
a return value in JavaScript is a named block of code that is created using the
<strong>function</strong> keyword, followed by the function's name, a set of parentheses
<strong>()</strong>, optional parameters, and a block of code within curly braces <strong>{
}</strong>. Inside the function, the return statement is used to specify the value that the function
should produce as its output.";
return message;
function functionObject()
document.write(output(obj));
</script>
</body>
</html>