Oddities of Dormez - markpwns1/Dormez GitHub Wiki

Anything is a statement

Anything syntactically correct is a statement. Take the following perfectly legal code for example:

console.write("What is your name? ");
declare input = console.prompt();
7 + 8;
console.print("Nice to meet you, " + input);

What does 7 + 8 do? Internally, it adds the numbers 7 and 8, but for all intents and purposes, it does nothing. Again, anything is a statement, as long as it is syntactically correct. There is a reason for this behaviour, but it's too long to explain here.