Skip to content

Instantly share code, notes, and snippets.

View thanklessbastard's full-sized avatar

thanklessbastard

View GitHub Profile
@thanklessbastard
thanklessbastard / factorials.js
Created October 12, 2012 00:36
javascript find factorial
// question:
// write an function that will find the factorial of a given number
//Loop [Fastest] -------------------------------
function factorial (n) {
var i, pN;
if(n === 0) { return }
else {
@thanklessbastard
thanklessbastard / maxNumberinArray.js
Created October 11, 2012 23:30
Javascript Max Number in an Array
//Question asked @:
everywhere
// Question:
// Find the largest number in an array
/* ***************************
SOLUTIONS
//************************** */
@thanklessbastard
thanklessbastard / fizzbuzz.js
Created October 11, 2012 22:53
Javascript Fizz Buzz Challenge
// This seems to be a favorite thanks to this dude
// http://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/.
// Expected to be asked @ :
// Gorilla Nation
// Fourth Wall Studios
// ##############################################################################
// Question:
// Write a program that prints the numbers from 1 to 100.