I disagree with this. JS is a multi-paradigm language where multiple disciplines can be used. JavaScript includes first-class functions, destructuring assignment, and other features which enable great support for functional style. You can avoid many object-oriented or imperative-style features of the language and skip all the headaches that come with them.
I disagree with this. JS is a multi-paradigm language where multiple disciplines can be used. JavaScript includes first-class functions, destructuring assignment, and other features which enable great support for functional style. You can avoid many object-oriented or imperative-style features of the language and skip all the headaches that come with them.
I never said anything about functional style so I'm not sure what you're trying to disagree with here...
I politely disagree with your summary of what JS is, that's all.
Oh sorry, that wasn't my quote 😅
Thought this was a direct reply to my article haha
"Functional style", ill-defined as it is, does not equate to not having effects / actions.
I totally agree with you!
The point of the post was not to say "JavaScript doesn't support functional programming"
It was just about my experience with a language that only supported functional things.
When I first got started with JS, I naturally used for loops because of my background with Java and imperative languages.
Elm forced me to try something different, and now that's the style I prefer using in JS too 😃
Thanks for your reply, sorry about causing the confusion!