Home of web learners
www.webn3rd.com
javascript has user definer function system to make function work in javascript
Lets start with an simple function
<html>
<body>
<script>
function show() {
alert('Its a function');
}
show();
</script>
</body>
</html>
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
webn3rd.com
About webn3rd