JPDev@programming.dev to Programmer Humor@programming.dev · 6 months agoExam Answerprogramming.devimagemessage-square122fedilinkarrow-up1786arrow-down111
arrow-up1775arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 6 months agomessage-square122fedilink
minus-squarekn0wmad1c@programming.devlinkfedilinkEnglisharrow-up10·6 months agoThis could run in Javascript if you setup print as an alias for window.alert or console.log
minus-squarePoolloverNathan@programming.devlinkfedilinkEnglisharrow-up4·6 months agoIt can run in regular JS; print() just prints the page (ignoring the passed value).
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up1·6 months agoThe QuickJS interpreter has print as a built-in alias for console.log.
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
.