DEV Community

Discussion on: Extreme Makeover: Code Edition

Collapse
 
buinauskas profile image
Evaldas Buinauskas • Edited

Both approaches are good. Putting const in function would align with functional programming approach. Making function not dependant on anything that's outside of it (being pure) 😊