Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View sfasano's full-sized avatar

Steve Fasano sfasano

View GitHub Profile
@sfasano
sfasano / buttonClassIssue.html
Last active August 29, 2015 14:10
I'm having an issue with reassigning the Button to .second
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>One Button Two Times</title>
</head>
<body>
@sfasano
sfasano / stevesGuessingGame.html
Created November 12, 2014 07:21
My Guessing Game
<script type="text/javascript">
// Declare variables
var userGuess, userChoice, answer;
// Present user with two options
do {
userChoice = prompt('Would you like to choose your own number, or have the computer randomly choose for you? \
1: Choose \
2: Random');
} while (userChoice != '1' && userChoice != '2');
@sfasano
sfasano / primeGuess.html
Created November 11, 2014 04:33
My Prime Guessing Game
<html>
<script>
var guess;
var prime = 2;
var isPrime = function(prime) {
for (var count = 2; count < prime; count++){
if (prime % count == 0){
return false;