There is no `var` here, so `result` ends up being a global variable.