Jul 15, 2022
You do realise that functions and closures are the exact same thing — just different syntax?
In the case of swift it is even true that a function could be seen as a named closure. It might vary for js from engine to engine — but conceptually they are the same in any case