Skip to content

Instantly share code, notes, and snippets.

@WesleySmits
Created October 16, 2021 08:58
Show Gist options
  • Save WesleySmits/48d209cab3496d8dc3d788cf54b6dd66 to your computer and use it in GitHub Desktop.
Save WesleySmits/48d209cab3496d8dc3d788cf54b6dd66 to your computer and use it in GitHub Desktop.
Simple web calculator: Update display method
#updateDisplay(): void {
if (this.#display === null) {
return;
}
this.#display.innerText = this.query;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment