Created
July 1, 2014 02:11
-
-
Save maereed/66ee69ce85d9635330e0 to your computer and use it in GitHub Desktop.
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
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<h2>My Repo</h2> | |
<p>This is my practice file for GitHub GUI and <a href="http://maereed.github.io/exercises" title="Link to my first gh-pages">My MakerSquare Exercises<a></p> | |
</div> | |
<script> | |
var slap = function() { | |
console.log('SLAP'); | |
}; | |
slap(); | |
var kick = function (name) { | |
console.log(name + ' reproaches your behavior.'); | |
}; | |
kick('Billy'); | |
var doubleIt = function (x) { | |
console.log(x + ' times two is ' + x*2); | |
}; | |
doubleIt(8); | |
var greet = function (name) { | |
console.log("Welcome, " + name); | |
}; | |
greet('Bob'); | |
function kanyeCase(verse) { | |
return verse.toUpperCase(); | |
} | |
console.log(kanyeCase("on sight")); | |
console.log(kanyeCase("beyonce had the best video of all time")); | |
function divideBy(number1, number2) { | |
return number1 / number2; | |
} | |
var result = divideBy(50, 2); | |
console.log('Result should be 25:', result); | |
result = divideBy(40, 10); | |
console.log('Result should be 4:', result); | |
result = divideBy(99, 3); | |
console.log('Result should be 33:', result); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment