Write your answer…
I keep coming across the following two misconceptions, on a fairly regular basis!
Arrow functions are bound with their outer context (
This one is a fairly common misconception, especially among the folks who make a ES5 to ES6 jump.
Arrow functions bypass the binding process which makes the outer context (
this) available inside the arrow function.
- JS can do everything. Literally, I have heard people say that. I have seen people write some simple functions which can be easily done in Java, being written in JS which is not only big, but clumsy.
- JS is not secure and vulnerable!
These 3 are most common one's I can recollect!
I was so surprised that I wanted to laugh and bash out at him in front of his colleages. But then it was in college so of course I didn't.
I still cringe when I think about that day. 😂
The Dev Community
Free, friendly and inclusive platform for developers
Or connect with