JSFiddle - React, Tailwind, and code Playground
by Simon Raper
HTML
<script src="http://simjs.com/_downloads/sim-0.26.js"></script>
<body>
<h1>My First JavaScript</h1>
<p id="demo">
JavaScript can change the content of an HTML element.
</p>
<button type="button" onclick="myFunction()">Click Me!</button>
</body>
JavaScript
var stream1 = new Random(222);
var simNorm = new Array();
for (var i = 0; i < 1000; i++)
{
simNorm[i] = stream1.normal(0,1)
}
alert(simNorm[22]);
function myFunction()
{
x=document.getElementById("demo"); // Find the element
x.innerHTML="Hello JavaScript!"; // Change the content
}