```
// Returns the nth number in the Fibonacci sequence
function fibonacci(n) {
if (n === 1 || n === 0) {
return 1;
} else {
return fibonacci(n - 1) + fibonacci(n - 2);
}
}
```

if you want to reproduce, please indicate the source:

Getting started with Recursion – Fibonacci Sequence Using Recursion in Javascript - CodeDay