loading...

re: Common JavaScript Mistakes You May be Making VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Map would be useful if you did use the return value for each mapped values. In this case, the console.log method won't return anything (or return ...
 

The last snippet assume that everyone knows what the first argument of console.log should be.

So it's leas clear. But both are fine if we're just logging the value straight up.

code of conduct - report abuse