mirror of
https://github.com/actions/node-versions.git
synced 2025-09-10 13:45:13 +08:00
Implement script to prepare packages with Node.js
This commit is contained in:
15
tests/simple-test.js
Normal file
15
tests/simple-test.js
Normal file
@@ -0,0 +1,15 @@
|
||||
function fibonacci(num){
|
||||
var a = 1, b = 0, temp;
|
||||
|
||||
while (num >= 0){
|
||||
temp = a;
|
||||
a = a + b;
|
||||
b = temp;
|
||||
num--;
|
||||
}
|
||||
|
||||
return b;
|
||||
}
|
||||
|
||||
console.log(fibonacci(7));
|
||||
console.log(fibonacci(23));
|
Reference in New Issue
Block a user