3 ms·
From the top of my head, Javascript and Common Lisp will also work with "Hello World" (with quotes).
by mejutoco 5y ago
From the top of my head, Javascript and Common Lisp will also work with "Hello World" (with quotes).
- donatj 5y agoI 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");
- mejutoco 5y agoFair 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")