Just as we would avoid `puts` in Ruby methods, we should avoid `alert` and `console.log` in JavaScript functions. Functions should return values, not output them.