GooseterV / Project-Euler

Found leading or trailing decimal points in numeric literals JS-0065
Anti-pattern
Minor
a year agoa year old
A leading decimal point can be confused with a dot
 1function smallestFactor(x) {
 2	for (i = 2; i <= Math.floor(x**.5); i++) { 3		if (x % i == 0) {
 4			return i;
 5		};