<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>A Pen by julian</title>
</head>
<body>
<script src="js/index.js"></script>
</body>
</html>
/*Downloaded from https://www.codeseek.co/kensledev/a-pen-by-julian-MENgXj */
function smallestCommons(arr) {
var front = arr[0] / arr[1]
var back = arr[1] / arr[0]
if (front % 1 == 0) {
console.log(front)
console.log('is whole')
} else if (back % 1 == 0) {
console.log(back)
console.log('is whole')
}
return arr;
}
smallestCommons([1,5]);