79257858

Date: 2024-12-06 11:46:29
Score: 2
Natty:
Report link

You can add a JSDOC style comment above the canvas like this:

/** @type {HTMLCanvasElement} */
const canvas = document.getElementById("renderCanvas");

enter image description here

More details in this answer: https://stackoverflow.com/a/61388350/4159530

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: 8Observer8