Published on: 25 June, 2014

Function in Javascript

Posted by andy | 1790 views 0 likes 0 favourites 0 comments
Tumblr Digg Google Plus

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){

There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.
Related Articles
Published on: 06 January, 2018
In this tutorial, you will learn how to minify JS and CSS files using Gulp. So what is exactly a Gulp is? Gulp is a javascript task runner, it can be used to perform an automatic tasks such as minifying and bundling files, running unit tests, running code analysis and much more.