DEV Community

Discussion on: Improve your JavaScript code with these...

Collapse
 
jcbbb profile image
jcbbb

What do you mean they are more efficient because they implicitly return a new array?
Your 3rd example even has a syntax error. Learn something before making a post, otherwise this is just embarrasing.

Collapse
 
hellonehha profile image
Neha Sharma

I would have appreciated your comment if you could have pointed out nicely - that there is a syntax error. But you cross the line of commenting properly - I would suggest learn how to comment nicely otherwise it is also embarrassing to read your rude comment.