blob: 2c3e98ecfee682e4bcef59a1cfbd8051d17037b9 [file] [log] [blame]
<html>
<head>
<script>
var lastVal = 5;
var result = -1;
function fib(n) {
if (n < 2) {
return 1;
} else {
return fib(n-1) + fib(n-2);
}
}
function calculate(e) {
result = fib(lastVal++);
}
</script>
</head>
<body>
</body>
</html>