Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Statements</h1>
<h2>The return Statement</h2>
<p>Call a function that performs a calculation and returns the result:</p>
<p id="demo"></p>
<script>
let x = myFunction(4, 3); 
document.getElementById("demo").innerHTML = x;
function myFunction(a, b) {
  return a * b;   
}  
</script>
</body>
</html>