this post was submitted on 13 Dec 2024
312 points (97.3% liked)

Greentext

4591 readers
749 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 1 year ago
MODERATORS
 

you are viewing a single comment's thread
view the rest of the comments

Javascript also exists on the server, and an exception would cause a 500 error. Semicolons are optional in JavaScript, except for a handful of cases. One of those is in a for loop. I'm guessing the professor was running a nodejs app and did something like this (intentionally bad style because professor):

for (x = 0; x < 5 x++)
{} 
return x

Boom, syntax error, which would return a 500 air status in a nodejs web server framework.