JPDev@programming.dev to Programmer Humor@programming.dev · 9 months agoExam Answerprogramming.devimagemessage-square129fedilinkarrow-up1799arrow-down111
arrow-up1788arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 9 months agomessage-square129fedilink
minus-squareJackGreenEarth@lemm.eelinkfedilinkEnglisharrow-up88·9 months agoOCR exam language, a pseudocode format.
minus-squarekn0wmad1c@programming.devlinkfedilinkEnglisharrow-up10·9 months agoThis could run in Javascript if you setup print as an alias for window.alert or console.log
minus-squarePoolloverNathan@programming.devlinkfedilinkEnglisharrow-up4·9 months agoIt can run in regular JS; print() just prints the page (ignoring the passed value).
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up1·9 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
.