Code
Loading editor...
Tap Analyze to see visualization
Click Analyze to visualize
See step-by-step execution, variables, and output
Variables
Run code to see variables
Output
Console output will appear here
Click Analyze to visualize
See step-by-step execution, variables, and output
Run code to see variables
Console output will appear here
Create a wrapper object around a DOM element with methods like css, addClass, and removeClass. Each mutating method modifies the element state and returns the wrapper object itself, enabling jQuery-style fluent method chaining.
Returning this (the wrapper) from each method allows consecutive calls to be chained on a single expression, reducing boilerplate and improving readability for DOM manipulation sequences.
Updated Feb 2026