Printing the y coordinate is "undefined"

For context this topic continues from here:

Resources for programming with P5,js:

:)