Fixed: global variables, declare functions safely, use parseInt correctly, understand strict comparison, determine location of item in an array, add values of an array