13. Prime Number
Lesson 14 of 31 in Coddy's 30 Days of Logic Building in Javascript course.
Challenge
EasyWrite a function to check if a given number is prime.
- Input:
<strong>7</strong> - Output:
<strong>true</strong>
Try it yourself
function isPrime(num) {
// write your code below
}All lessons in 30 Days of Logic Building in Javascript
1Introduction
What is here for you?