DOM Manipulation

Number of questions
8 questions
Recommended duration to spend during interviews
170 mins
Dive into the world of element selection and modification in the DOM. Practice selecting elements using CSS selectors, traverse the DOM hierarchy, and manipulate their properties, content, and styles.

All Practice Questions

Coding Format
Number of questions
8 questions
Total time
3 hours total

Questions List

  • jQuery.cssImplement a jQuery-like function that sets the style of a DOM element
    Difficulty
    Easy
    Languages
    HTMLCSSJSTS
  • getElementsByTagNameImplement a function to get all DOM elements that match a tag
    Difficulty
    Medium
    Languages
    HTMLJSTS
  • HTML SerializerImplement a function to serialize an object into an HTML string with indentation
    Difficulty
    Medium
    Languages
    HTMLJSTS
  • Identical DOM TreesImplement a function to determine if two DOM trees are the same
    Difficulty
    Medium
    Languages
    HTMLJSTS
  • jQuery Class ManipulationImplement a set of jQuery-like functions that manipulates classes on a DOM element
    Difficulty
    Medium
    Languages
    HTMLCSSJSTS
  • Text SearchImplement a function to highlight text if a searched term appears within it
    Difficulty
    Medium
    Languages
    HTMLJSTS
  • getElementsByClassNameImplement a function to get all DOM elements that contain the specified classes
    Difficulty
    Medium
    Languages
    HTMLCSSJSTS
  • Table of ContentsImplement a function to construct a table of contents from an HTML document
    Difficulty
    Hard
    Languages
    HTMLJSTS