Javascript isolated snippets

In order to have secured snippets, each klipse-snippet element is embedded into an iframe.
This approach supports the following features:
Usual data manipulation stuff:
[1,2,3].map((x) => x +1)
sandboxed dom manipulation :)

klipse_container.innerHTML = "hello <b>dev.to</b>"; 1 + 2;
The sandbox is secured: you cannot access the document cookies
document.cookie
But you cannot share code or data between snippets :(
foo = (name) => `Hello ${name}` foo("Klipse") foo("Javascript")