DEV Community

Discussion on: Writing modern JavaScript code

Collapse
 
relativityboy profile image
relativityboy

A nice little article but your first code example for functional programming is misleading.

The array declaration used for both // Instead of: and // Prefer: is shown visually to be a part of the // Instead of: block.

This might suggest to the user at a glance "oh, the new way is prettier". But it's a misrepresentation of what's going on.

Sorry to be a neg, but you're going to sell an idea, you gotta sell the truth.

Collapse
 
scastiel profile image
Sebastien Castiel

You're absolutely right, my bad. It's fixed πŸ˜‰