Answers for "how to get nth fibonacci javascript"

0

how to get nth fibonacci javascript

function nthFib(n) {
	if(n <= 2) return n -1;
  return nthFib(n - 2) + nthFib(n - 1);
}
Posted by: Guest on June-27-2020

Code answers related to "how to get nth fibonacci javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language