Input hello world or else without a quine

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually input hello world or else: without a quine.

Input hello world or else without a quine is an esolang invented by User:Unname4798, inspired by input hello world or else:, it is a joke esolang. If you type:

grrrrrrrrr

It outputs:

Why are you angry?

And if you type:

Hello world

It outputs:

Hello, World!

Interpreters

JS

var command = ""; /* Replace the empty string with user input */
if (command != "Hello world") {
  if (command != "grrrrrrrrr") {
    console.log("grrrrrrrrr");
  } else {
    console.log("Why are you angry?");
  }
} else {
  console.log("Hello, World!");
}