hello_world.js 426 B

12345678910111213141516
  1. /**
  2. * Hello, World! script from the Esolang wiki
  3. *
  4. * Outputs the string "Hello, world!" in ASCII decimal.
  5. *
  6. * @see https://esolangs.org/wiki/Intcode#Example_Programs
  7. */
  8. const Computer = require("../IntComp/Computer");
  9. const program = [4, 3, 101, 72, 14, 3, 101, 1, 4, 4, 5, 3, 16, 99, 29, 7, 0, 3, -67, -12, 87, -8, 3, -6, -8, -67, -23, -10];
  10. const c = new Computer(program, {
  11. outputToConsole: true,
  12. });
  13. c.Run();