How to declare a function in javascript so that it can be called like this: f()() , where f is the name of the function?
- What is the purpose of this event? - PinkTux
- onefunction f must return a function. - Grundy Nov.
- In the test task there was such a question - user228109 Nov.
- For this no twists with brackets are needed. For example . - PinkTux
- oneTwo times brackets mean that the operator of brackets is applied to f and then to the result of f (). In javascript, the parenthesis operator is applicable only to functions, that is, f () should return the function for which the second () - nick_n_a applies
|