Lesson 16 of 24 · +110 xp
Type Assertion
Tell the compiler.
Explained simply
Your task
Write: const el = document.getElementById('app') as HTMLDivElement;
Lesson 16 of 24 · +110 xp
Tell the compiler.
Write: const el = document.getElementById('app') as HTMLDivElement;