IMG-LOGO

Function in Javascript

andy - 25 Jun, 2014 4032 Views 0 Comment

To create function in Javascript is pretty simple. You basically just need to include a keyword function.

Example of a simple javascript function

The following example function will accept 1 parameter which is a string and if you call this function, itwill show an alert box to display your entered string.

function sayMyName(name){
    alert(name);
}

Comments

There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Blogs

Related Tutorials