All quizzes
Free quiz · 20 questions in the bank

lit-html quiz

Test your lit-html knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is the difference between a property binding (`.propName=${value}`) and an attribute binding (`propName=${value}`) in lit-html?

Questions in this quiz
  1. What is the difference between a property binding (`.propName=${value}`) and an attribute binding (`propName=${value}`) in lit-html?
  2. Why would a developer use the `repeat()` directive instead of a plain `.map()` when rendering a list in lit-html?
  3. Why might a team choose lit-html (or Lit) over a heavier framework like React or Angular for a specific project?
  4. What lit-html directive would a developer use to intentionally render trusted HTML markup from a string, bypassing the default text-escaping behavior?
  5. What does it mean that lit-html templates are "declarative"?
  6. How does lit-html typically handle binding an array of child template results (e.g., a list of items) inside a parent template?
  7. What is the purpose of the `html` tagged template function in lit-html?
  8. Why does lit-html automatically escape dynamic string values inserted into a template by default?
  9. Why is understanding that lit-html templates are plain JavaScript functions (not a separate template language with its own compiler) useful?
  10. What is a core architectural difference between lit-html's update model and a framework like React that uses a virtual DOM?
  11. How does binding an event listener typically look in a lit-html template?
  12. How does lit-html handle re-rendering when a template's dynamic values change?
Gaps to close?
Read the curated lit-html notes — core concepts, patterns, interview prep.
lit-html notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web