function add(x, y) { return x + y }
function div(x, y) {
if(y === 0) throw new Error('div by zero')
return x / y
}
try {
const sum = add(10, 100)
const result = div(sum, sum - sum)
console.log('result!', result)
} catch(e) {
console.log('omg')
console.log(e)
}