## oschvr

### a blog about software, cloud computing, security, money, business, travelling and life.

**← Posts**

# Shortest Fibonacci

#### 1 min

#### over 1 year ago

###### 15/05/2019

Here's an incredibly short anonymous fibonacci function in Js. It takes a parameter n to calculate the fibonacci number at position n

`;(n => (n <= 1 ? n : n - 1 + n - 2))(5)`