DEV Community

Discussion on: Traditional Functions or Arrow Functions in Javascript?

Collapse
 
jharteaga profile image
Jose Arteaga

Exactly! It was more related to hoisting. I mean, there must be an error if I call the function expression before its declaration. Otherwise with traditional functions it won't happened.

By the way, thanks for the information about IIFE, I will read up on it.

Collapse
 
thomasstep profile image
Thomas Step

I definitely misunderstood the first time through so I apologize for that.

Thread Thread
 
jharteaga profile image
Jose Arteaga

There's no problem Thomas! Thank you for your response and help.