reading joystick code error

After fixing that now i have this part

serialWrite('J');

producing error code

sketch_jul20a.cpp: In function 'void loop()':
sketch_jul20a:44: error: 'serialWrite' was not declared in this scope

any ideas?