sqrt = function(n) {
var original = n
var found = 0
function loop(n) {
if ((n*n) == original) {
found = n
} else {
loop(--n)
}
if (n <= 0) return
}
loop(original)
return found === 0 ? 'doesnt have one' : found
}
var s = sqrt(81)
console.log ("square root is: ", s)