projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Version 1
[yaffs-website]
/
vendor
/
jcalderonzumba
/
gastonjs
/
tests
/
unit
/
Server
/
www
/
web
/
static
/
fibonacci.js
diff --git a/vendor/jcalderonzumba/gastonjs/tests/unit/Server/www/web/static/fibonacci.js
b/vendor/jcalderonzumba/gastonjs/tests/unit/Server/www/web/static/fibonacci.js
new file mode 100755
(executable)
index 0000000..
eae39fc
--- /dev/null
+++ b/
vendor/jcalderonzumba/gastonjs/tests/unit/Server/www/web/static/fibonacci.js
@@ -0,0
+1,12
@@
+(function (fibonnaciNumber) {
+ var looping = function (n) {
+ var a = 0, b = 1, f = 1;
+ for (var i = 2; i <= n; i++) {
+ f = a + b;
+ a = b;
+ b = f;
+ }
+ return f;
+ };
+ return looping(fibonnaciNumber);
+})(10);