Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call out javascript function which is assigned to a variable?

Tags:

javascript

function test1 (){
    //do something
}

To call out the function above, i just need to write test1();

var check_day = function($select_d){
    //do something
};

How can I call out the function which is assigned to a variable?

like image 778
zac1987 Avatar asked Jun 05 '12 15:06

zac1987


1 Answers

The same way–call a function using parens ():

check_day(the_parameter);
like image 62
Dave Newton Avatar answered Oct 05 '22 22:10

Dave Newton