TypeError: Cannot read properties of undefined (reading 'NaN') (line 26, file "Code")