Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created December 5, 2014 15:49
Show Gist options
  • Save Bijesse/dc4ce4bec38c8dc68bac to your computer and use it in GitHub Desktop.
Save Bijesse/dc4ce4bec38c8dc68bac to your computer and use it in GitHub Desktop.
<style id="jsbin-css">
height: 120px;
width: 160px;
background-color: blue;
opacity: 0;
}
#pic {
height: 120px;
width: 160px;
background-size: cover;
background-image: url("http://bit.ly/1bm15nI");
}
</style>
<script id="jsbin-javascript">
var age = prompt("What is your age?");
// YOUR CODE HERE - Change the age variable's value so it's twice whatever the user entered
alert("Twice your age is " + );
</script>
<script id="jsbin-source-css" type="text/css"> height: 120px;
width: 160px;
background-color: blue;
opacity: 0;
}
#pic {
height: 120px;
width: 160px;
background-size: cover;
background-image: url("http://bit.ly/1bm15nI");
}</script>
<script id="jsbin-source-javascript" type="text/javascript">var age = prompt("What is your age?");
// YOUR CODE HERE - Change the age variable's value so it's twice whatever the user entered
alert("Twice your age is " + );
</script>
height: 120px;
width: 160px;
background-color: blue;
opacity: 0;
}
#pic {
height: 120px;
width: 160px;
background-size: cover;
background-image: url("http://bit.ly/1bm15nI");
}
var age = prompt("What is your age?");
// YOUR CODE HERE - Change the age variable's value so it's twice whatever the user entered
alert("Twice your age is " + );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment