Explain why using array.map(nameOfFunction) is a bad practice.
I'm ready to hear anything if it's logic.
I've not said using array.map(nameOfFunction) is bad practice, I said using console.log in that way is.
array.map(nameOfFunction)
console.log
Your comment used array.map(console.log) which is just wrong.
array.map(console.log)
Haaa ok, I just took the same examples as the article. But i do agree that console.log is bad practice.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Explain why using array.map(nameOfFunction) is a bad practice.
I'm ready to hear anything if it's logic.
I've not said using
array.map(nameOfFunction)
is bad practice, I said usingconsole.log
in that way is.Your comment used
array.map(console.log)
which is just wrong.Haaa ok,
I just took the same examples as the article. But i do agree that console.log is bad practice.