DEV Community

Discussion on: What habit do many senior engineers have that juniors should try to avoid adopting?

 
napoleon039 profile image
Nihar Raote

I've been doing that a lot in CodeWars. Putting the entire code in a single return statement. I'm talking about converting a string to an array, running map and reduce on it, then converting it back to a string in a single return statement.

Thread Thread
 
elliot profile image
Elliot

Yea exactly what I'm talking about :) It's fun right!