JS functions (with no parameters or return statement)
by danielkwood
HTML
<html>
<head>
<title>Functions</title>
<script src="script.js"></script>
</head>
<body>
</body>
</html>
JavaScript
// This is an example of defining a function with no parameters specified and no return value
function sayMessage(){
console.log("Hello world");
}
// This is an example of calling a function
sayMessage();