DEV Community

Discussion on: Ditching the "else" Statement

Collapse
 
jonrandy profile image
Jon Randy 🎖️

When I had that class would have been around '95

Thread Thread
 
eljayadobe profile image
Eljay-Adobe

That'd be about right. 1950s structured programming approaches, which were refined and formalized in the 1960s, being taught in 1995.

There are languages, like COBOL, where the language itself doesn't allow you to violate the one return statement. Fortunately, JavaScript is not COBOL.