Calling a function with double parameters () in javascript -


anyone know happens when call function double ()

so

get_separate_save_methods_function(url, false); 

becomes

get_separate_save_methods_function(url, false)();  

i've never seen before seems change false argument true, when remove () same argument becomes false. it's not code , i'm trying work out if mistake or has been done of purpose.

no, () doesn't change argument false true.

get_separate_save_methods_function(url, false)(); 

can used when

get_separate_save_methods_function(url, false) 

returns function. calls returned function.

given get_separate_save_methods_function name, not mistake it's hard tell more code.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -