Skip to content

Instantly share code, notes, and snippets.

# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@deepak1556
deepak1556 / fac.js
Last active September 30, 2016 17:23
Differnt styles of factorial implemetation in js for fun
/** Newbie Programmer */
function fac(n) {
if(n === 0)
return 1;
else
return n * fac(n-1);
}
/** Callback programmer */
function fact(n, cback) {