Kaptaan Jack@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agoProgramming Languageslemmy.mlimagemessage-square173fedilinkarrow-up1776arrow-down163file-text
arrow-up1713arrow-down1imageProgramming Languageslemmy.mlKaptaan Jack@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agomessage-square173fedilinkfile-text
minus-squareFeathercrown@lemmy.worldlinkfedilinkarrow-up2·1 year agoIn the browser you cannot access stdout, but you can use console.log to write to the dev console which is basically the same thing. In Node, you can use process.stdout. Both are available from the top-level globalThis objects that are part of each platform’s respective default library.
minus-squaremonk@lemmy.unboiled.infolinkfedilinkarrow-up1·1 year agoAnd in GJS? All other runtimes? In, say, C, such basic stuff is right there, in the standard. Javascript isn’t even standardized, some ECMAScript is, so I don’t even know what we’re talking about.
In the browser you cannot access stdout, but you can use
console.log
to write to the dev console which is basically the same thing.In Node, you can use
process.stdout
.Both are available from the top-level
globalThis
objects that are part of each platform’s respective default library.And in GJS? All other runtimes?
In, say, C, such basic stuff is right there, in the standard.
Javascript isn’t even standardized, some ECMAScript is, so I don’t even know what we’re talking about.