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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When I had that class would have been around '95
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.