How do I solve this error? 'ledPin' was not declared in this scope

HELP PLEASE!

i'm new to all of this and I'm using the manual I got when I bought the arduino yesterday and have copied the code exactly but it comes up with this error:

Arduino: 1.6.5 (Mac OS X), Board: "Arduino/Genuino Uno"

LED_blinks.ino: In function 'void setup()':
LED_blinks:12: error: 'ledPin' was not declared in this scope
LED_blinks.ino: In function 'void loop()':
LED_blinks:18: error: 'ledPin' was not declared in this scope
'ledPin' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

HOW DO I SOLVE IT? thank you :slight_smile:

add this to the pre-setup code

byte ledPin = 13;

That's it thank you!