Skip to content

Instantly share code, notes, and snippets.

Created April 27, 2016 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/9fbbc7aab0a41da76ee8d38925a800d8 to your computer and use it in GitHub Desktop.
Save anonymous/9fbbc7aab0a41da76ee8d38925a800d8 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/loqese
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h1 id="h1changed">This is Javascript</h1>
<p id="pchanged">Change this text please!</p>
<button onclick="myAwesomeFunction()">Click me if you want to live</button> <br><br>
<button onclick="anotherFunction()">Another Function to run</button> <br> <br>
<button onclick="resetTheApp()">Reset the app!</button>
<script id="jsbin-javascript">
var score = 2;
var playerName = "Alicia";
function myAwesomeFunction() {
document.getElementById("h1changed").innerHTML = "Mammoth Interactive for the Win!";
}
function anotherFunction() {
document.getElementById("pchanged").innerHTML = "Another Function";
}
function resetTheApp() {
document.getElementById("h1changed").innerHTML = "Click me if you want to live";
document.getElementById("pchanged").innerHTML = "Change this text please!";
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">var score = 2;
var playerName = "Alicia";
function myAwesomeFunction() {
document.getElementById("h1changed").innerHTML = "Mammoth Interactive for the Win!";
}
function anotherFunction() {
document.getElementById("pchanged").innerHTML = "Another Function";
}
function resetTheApp() {
document.getElementById("h1changed").innerHTML = "Click me if you want to live";
document.getElementById("pchanged").innerHTML = "Change this text please!";
}</script></body>
</html>
var score = 2;
var playerName = "Alicia";
function myAwesomeFunction() {
document.getElementById("h1changed").innerHTML = "Mammoth Interactive for the Win!";
}
function anotherFunction() {
document.getElementById("pchanged").innerHTML = "Another Function";
}
function resetTheApp() {
document.getElementById("h1changed").innerHTML = "Click me if you want to live";
document.getElementById("pchanged").innerHTML = "Change this text please!";
}
@tonomoshia
Copy link

Lessons 2-7 (Learn to Code, Become a Web Developer and Master Javascript | John Bura | Udemy) 4/26/16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment