We know that a number that is both divisibleby 3 and 5 is also divisible by 15. So

if ((i % 3 === 0) && (i % 5 === 0))

is the same as

if (i % 15 === 0)

Please note that this site and the posts on it are, and will always be, a work in progress. If i waited for perfection, i’d never get anything done.
A project of 29 CONCEPTS SMC-PVT LTD. Created with by Aamnah. All content is licensed under Creative Commons CC BY-SA 4.0