Variable Scope

The calc output is using the vars that are inside its function. the
console log is using the var that is outside the function because of
the matching scope