786
Exam Answer (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] dragontamer@lemmy.world 57 points 2 years ago* (last edited 2 years ago)

Is it wrong that I'm stuck trying to figure out what language this is?

Trying to figure out what string.length and print(var) exist in a single language.... Not Java, not C# (I'm pretty sure its .Length, not length), certainly not C, C++ or Python, Pascal, Schme or Haskell or Javascript or PHP.

[-] JackGreenEarth@lemm.ee 88 points 2 years ago

OCR exam language, a pseudocode format.

[-] kn0wmad1c@programming.dev 10 points 2 years ago

This could run in Javascript if you setup print as an alias for window.alert or console.log

[-] PoolloverNathan@programming.dev 4 points 2 years ago

It can run in regular JS; print() just prints the page (ignoring the passed value).

[-] lemann@lemmy.dbzer0.com 2 points 2 years ago
load more comments (1 replies)
load more comments (1 replies)
load more comments (36 replies)
this post was submitted on 24 Mar 2024
786 points (98.6% liked)

Programmer Humor

34344 readers
897 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS