Hacker News new | ask | show | jobs
by mejutoco 1667 days ago
From the top of my head, Javascript and Common Lisp will also work with "Hello World" (with quotes).
1 comments

I can’t speak for Lisp, but JavaScript isn’t going to write that to standard out, it would just be a statement that didn’t do anything.

You would need something like

    import { stdout } from 'process';
    
    stdout.write("Hello World");
Fair enough. On the client (just opening dev tools) it would return the string, but as you say, it depends on what we count as valid (repl, server-side, client). Probably the closest would be

    console.log("Hello World")