const contentString = "Hello, world";
document.body.innerHTML = contentString.small();String.prototype.small() / notebook
String.prototype.small()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<small>Hello, world</small>const contentString = "Hello, world";
const elem = document.createElement("small");
elem.innerText = contentString;
document.body.appendChild(elem);