Call your function in JavaScript

Description

The following code shows how to call your function.

Example


<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
yourMessage();<!--  ww w.j  a va2s  .  c om-->
function yourMessage()
{
document.writeln("Your first function!");
}
</script>
</head>
<body>
</body>
</html>

Click to view the demo

The code above generates the following result.

Call your function in JavaScript