jsfiddle-export

by Andrea Ercolino

HTML

<div id="triple"></div>

CSS

#triple {
    background-color: #F0F0F0;
    padding: 2em;
}

JavaScript

/*[[[[[*/
var test = 'some code';
/*]]]]]*/

function hypotenuse(a, b) {
    return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
}
$('#triple').html('The smallest Pythagorean triple is (3, 4, ' + hypotenuse(3, 4) + ').');

/*[[[[[*/
console.log('Just imported and executed ' + test + '.');
/*]]]]]*/