Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

console

Every package receives its own console object.

console.log("ready");
console.warn("slow operation");
console.error("operation failed");

Arguments are converted to strings and joined with spaces. Entries are tagged with the package ID and routed to both Fumoware’s debug log and the JavaScript console window.

Methods

interface Console {
  log(...values: unknown[]): void;
  warn(...values: unknown[]): void;
  error(...values: unknown[]): void;
}