class Slide {
constructor () {
// do stuff
}
toElement () {
var element = document.createElement("lemon");
element.innerHTML = "sorry, slide - rlemon, 2015";
return element;
}
toString () {
return "<lemon>sorry, slide - rlemon, 2015</lemon>";
}
}
var slide1 = new Slide();
document.body.appendChild(slide1.toElement());
// or
document.body.innerHTML += slide1;
"use pootis"; // so that pasting into dev console doesn't crash browser