In this post , We try to understand on how to create the simple JavaScript function and calling them in your html page or node JS.
syntax.
function functionName()
{
//business logic.
}
How to call (execute) the function , just naming the function name in your code.
Example : functionName()
Now we start to look into implementing in the HTML page. Open your favorite editor and follow this image.
Save this file .html extension and open it any of your favorite browser and hit the F12 and see the "Console" tab in the browser.

No comments:
Post a Comment