javascript Write a recursive function isPrime that determines if a number is prime and returns true if it is. code example
Example: prime or not in javascript
function isPrime(num) {
for(var i = 2; i < num; i++)
if(num % i === 0) return false;
return num > 1;
}