Javascript – Why does console.log report the value of my variable, but return doesn't?
I'm working through a coding interview practice question. The prompt: A company assigns each customer a membership ID, and you are implementing a check digit for those IDs. The check digit should be calculated by adding up all digits in…