average of first 10 prime numbers using javascriptaverage of first 10 prime numbers using javascript
javascript Copy code // Function to check if a number is prime function isPrime(num) { if (num <= 1) return false; for (let i = 2; i <= Math.sqrt(num); i++)