const highlight = new Highlight();
highlight.add(range1);
highlight.add(range2);
highlight.add(range3);
console.log(highlight.size); // 3Highlight: size property / notebook
Highlight: size property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.