What really helped me was doing one string at a time and saying the note names to myself as I went up the fretboard one step at a time.
Another thing that helped was taking a diagram of the fretboard and writing the notes out on that so that I could see the fretboard. Doing this was an activity that pushed me to memorize the notes.
Visualizing is the next step where you can see the fretboard without actually playing the guitar and know what the notes are.
You can check out this article about some visual techniques.
are there any good exercises to help you learn all the notes on the fretboard? I got all the notes on the 6th and 1st string memorized as those strings use the same notes and there in the exact same spot..but the notes in the middles strings...5,4,3,2....are the ones Im having more trouble with memorizing.
Any good exercises to learn the notes and be confident about knowing the notes?
You might want to connect the same notes on different strings. Example, if one plays a power chord and play the octave with the 4th finger like some do - the notes on the 1st and 4th fingers are the same...the higher note is just an octave higher than the root.
You can also start with just one or two notes, find these notes all over the fretboard them focus on memorising them. Then pick two more notes and do the same again.