Find the next fibonacci number | Function to return the next fibonacci number ; Driver code
function nextFibonacci ( n ) { let a = n * ( 1 + Math . sqrt ( 5 ) ) / 2.0 ; return Math . round ( a ) ; } let n = 5 ; document . write ( nextFibonacci ( n ) ) ;