Problem 9. Write a JavaScript program to find whether a number is divisible by 2 or 3.

let num = 10;

if (((num % 2) == 0) || ((num%3) == 0))
    console.log("divisible by 2 or 3");     // this will print
else
    console.log("divisible by some other number.");