Friday, 10 September 2021

JS function understanding

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

Powershell Regex Curly braces

This post just shows on how to create the regex pattern to extract the values between double curly braces.