intermediate40 minby DevFox

In the browser: DOM types, the lib setting, and why querySelector can return null

TaskKit moves into a browser tab. Learn what the DOM is, how the lib setting tells TypeScript where code runs, why querySelector returns Element | null, and how to turn it into the element you need, with the page running right under the code.

  • TypeScript
  • Types
In the browser: DOM types, the `lib` setting, and why `querySelector` can return `null`. Read this lesson at .