AttachConsole failed with error 6: The handle is invalid.

JavaScript
const isWin = false;

Source

Also in JavaScript: