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

Greentext

4593 readers
748 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
315
Anon is a math prodigy (self.greentext)
submitted 5 days ago* (last edited 5 days ago) by bluelion to c/greentext
 

you are viewing a single comment's thread
view the rest of the comments
[–] sugar_in_your_tea 12 points 3 days ago

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.