Copy the code code as follows:
<html>
<head>
<title>The use of ordinary functions in javascript</title>
<script>
function show(){
document.write("show function was called" + "<br/>");
return 10;
}
var hello = show();//The show() function is called and the return value is assigned to the hello variable. If the function does not return a value, it returns undefined
document.write(hello + "<br/>");//10
var hello2 = show;//show and hello2 point to the same function
document.write(hello2 + "<br/>");//Print out the function body of show
hello2();//Equivalent to calling the show() function
</script>
</head>
<body>
</body>
</html>