Javascript Error undefined

why does it give me an error of discountAmount2 is not defined when I declared it right above? Im using a javascript code block

Hello @Nicole_Reiter!

Does the code block run despite the linter?