how to declare and call user defined functions in jquery
how to declare and call user defined functions in jquery
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AshishPosted Apr 14, 2014, 3:29 AM
function greet( person, greeting ) {
var text = greeting + ", " + person;
console.log( text );
};
//Calling Jquery function
var greet = greet( "Rebecca", "Hello" ); // "Hello, Rebecca"