DEV Community

Discussion on: UNDERSTANDING FIRST-CLASS FUNCTIONS AND ANONYMOUS FUNCTIONS IN JAVASCRIPT

Collapse
 
vladyslavkhrystych profile image
Vladyslav Khrystych

console.log(sumOfTwo); // returns 4

I think, you got typo. It will returns code of sumOfTwo function, not the sum :)

Collapse
 
lawrence_eagles profile image
Lawrence Eagles

I have fixed this type. Thanks for your observation.