Total product

Challenge 📝

Two numbers are given a and b. Return their sum. If both numbers are equal, return their product.

function totalProduct(a, b) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag