(fruits)
| 364 | // randomFruit([1, 2]) 👉 2 |
| 365 | // randomFruit([1, 2]) 👉 1 |
| 366 | const randomFruit = (fruits) => { |
| 367 | const randomNumber = Math.floor(Math.random() * fruits.length) |
| 368 | |
| 369 | console.log(randomNumber) |
| 370 | |
| 371 | return fruits[randomNumber] |
| 372 | } |
| 373 | |
| 374 | // fruits = ['🍌', '🍎', '🍊', '🍐'] |
| 375 | // console.log(randomFruit(fruits)) |
nothing calls this directly
no outgoing calls
no test coverage detected