Introduction to the use of common functions in javascript
<html><head><title>javascript The use of ordinary functions in </title><script>function show(){document.write("show The function is called " + "<br/>");return 10;}var hello = show();//The show() function is called, assigning the return value to the hello variable. If the function does not return a value, it returns undefineddocument.write(hello + "<br/>");//10var hello2 = show;//Show and hello2 point to the same functiondocument.write(hello2 + "<br/>");//Print out the body of the show functionhello2();//This is equivalent to calling the show () function</script></head><body></body></html>