Function object and Function in an object
· ☕ 1 min read
Previously, we have talked about all things being an object in Javascript. But to what extent can we apply this to our beloved functions.
You can see this almost everywhere with the below syntax -
1 2 3 4 5 6 const getSum = (x, y) => { return x + y; }; console.