JavaScript IF Illustration

This script calculates all factorials for 1 to 6, but it only prints them for even numbers

This script finds which numbers from 1 to 10 are divisible by prime numbers 2, 3 and 5

The script above only finds if it is divisible by one of the 3 prime numbers, not all 3. This one does: