Created
December 5, 2014 15:49
-
-
Save Bijesse/dc4ce4bec38c8dc68bac to your computer and use it in GitHub Desktop.
// source http://jsbin.com/viqiqenugi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
height: 120px; | |
width: 160px; | |
background-color: blue; | |
opacity: 0; | |
} | |
#pic { | |
height: 120px; | |
width: 160px; | |
background-size: cover; | |
background-image: url("http://bit.ly/1bm15nI"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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