JPDev to Programmer Humor · 8 months agoExam Answerimagemessage-square129fedilinkarrow-up1798arrow-down111
arrow-up1787arrow-down1imageExam AnswerJPDev to Programmer Humor · 8 months agomessage-square129fedilink
minus-squareJackGreenEarth@lemm.eelinkfedilinkEnglisharrow-up88·8 months agoOCR exam language, a pseudocode format.
minus-squarekn0wmad1clinkfedilinkEnglisharrow-up10·8 months agoThis could run in Javascript if you setup print as an alias for window.alert or console.log
minus-squarePoolloverNathanlinkfedilinkEnglisharrow-up4·8 months agoIt can run in regular JS; print() just prints the page (ignoring the passed value).
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up1·8 months agoThe QuickJS interpreter has print as a built-in alias for console.log.
OCR exam language, a pseudocode format.
This could run in Javascript if you setup print as an alias for window.alert or console.log
It can run in regular JS;
print()
just prints the page (ignoring the passed value).undefined
The QuickJS interpreter has
print
as a built-in alias forconsole.log
.