alert("hello!");What are browser developer tools? / notebook
What are browser developer tools?
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
document.querySelector("html").style.backgroundColor = "purple";const loginImage = document.createElement("img");
loginImage.setAttribute(
"src",
"https://mdn.github.io/shared-assets/images/examples/login-button.png",
);
document.querySelector("h1").appendChild(loginImage);