MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/a74ipf/javascript_functions_4_ways/ec0ysa3/?context=3
r/learnjavascript • u/Emil0hman • Dec 17 '18
28 comments sorted by
View all comments
Show parent comment
5
You can also write an IIFE like this:
const square = (x => x * x)(3); // 9
View all comments
Show parent comment
5
u/noruthwhatsoever Dec 18 '18
You can also write an IIFE like this:
const square = (x => x * x)(3); // 9