10 lines
162 B
JavaScript
10 lines
162 B
JavaScript
export class PlaygroundConsole {
|
|
constructor(elem) {
|
|
this.elem = elem;
|
|
}
|
|
|
|
log(text) {
|
|
this.elem.textContent += `\n${text}\n`;
|
|
}
|
|
}
|