Home of web learners


javascript has user definer function system to make function work in javascript

Lets start with an simple function

function show() {
alert('Its a function');

When you run this code it shows an alert,here at first we declare a function named show,then inside the body of function we write the alert code which is going to execute when it calls

And in the next line we call the function,so it shows us an alert


About webn3rd