TLDR Web Dev · QUICK LINKS

AN OVERLOADED DEVELOPER

thedailywtf.com2 min read

Summary from the TLDR Web Dev newsletter

A senior developer attempted to implement function overloading in JavaScript by creating two functions with the same name but different parameters, but didn't realize JavaScript sets missing parameters to null when calling a function.