example.js
// glance test: 0 o O / l 1 I / => === !== <= >=
const isMultipleOf = (number, multiple) => {
if (number === 0) return '0 is a neutral element';
for (let i = 1; i <= 10; i++) {
if ((number * i) % multiple === 0) {
console.log(number * i + ' is a multiple of ' + multiple);
} else {
console.log(number * i + ' is not a multiple');
}
}
};
let oO0 = 0; // Zero (tell 0 from o and O)
let l1I = 1; // One (tell l from 1 and I)
/* a multi-line comment, kept down here so italics still
get a few lines without burying the code up top */
isMultipleOf(oO0, l1I); // => related to zero
isMultipleOf(l1I, oO0); // => related to one