// load <exec-code> Web Component <script src="https://exec-code.github.io/element.js">
// Use Web Component <exec-code> <template> <code> console.log("Hello World!"); </code> </template> </exec-code>
console.log("Hello World!");
<exec-code autorun>Execute code immediately after display
console.log("Hello World!");
<exec-code autorun autoupdate>Execute code on every user keystroke
console.log("Hello World!");
<exec-code> <template> <code locked>Code can not be edited
console.log("Hello World!");
<exec-code htmlindent>Keep original indentation from HTML file
let beatles = ["John", "Paul", "George", "Ringo"];
console.log("All Beatles:", beatles);
console.log("Beatle 1 =", beatles[0]);
console.log("Beatle 2 =", beatles[1]);
console.log("Beatle 3 =", beatles[2]);
console.log("Beatle 4 =", beatles[3]);