Skip to content

Instantly share code, notes, and snippets.

@oreillyalan
oreillyalan / common_functions.js
Last active September 7, 2022 17:07
Some common functions I used for white board coding as a comp sci graduate.
let isFactor = (num) => {
for(i=0; i <= num; i++){
if(num % i === 0) {
return true
} else {
return false
}
}
}