Launch the Yavascript REPL (read-eval-print-loop).
@paramcontext — Variables to make available as globals within the repl.@paramlang — The language to use in the repl. Defaults to "javascript".
const startRepl: {
(
context?: {
[key: string]: any;
},
lang?:
| "js"
| "javascript"
| "ts"
| "typescript"
| "jsx"
| "tsx"
| "coffee"
| "coffeescript"
| "civet",
): void;
NOTHING: symbol;
};(context?: {
[key: string]: any;
}, lang?: "js" | "javascript" | "ts" | "typescript" | "jsx" | "tsx" | "coffee" | "coffeescript" | "civet"): void;A special value; when expressions result in this value, the repl will print nothing instead of printing this value.
NOTHING: symbol;