zac1987
zac1987

Reputation: 2777

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

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?

Upvotes: 9

Views: 12212

Answers (1)

Dave Newton
Dave Newton

Reputation: 160321

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

check_day(the_parameter);

Upvotes: 20

Related Questions