Closed
Description
test.js
const fib = n => {
if(n <= 1) {
return n;
} else {
return fib(n - 1) + fib(n - 2);
}
}
console.log(fib(10));
let a = "hello world";
a;
result
Hello
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: UnexpectedKeyword(Else)', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Metadata
Metadata
Assignees
Labels
No labels