How to learn/memorize code?

Hi guys! I’ve been studing with codeCademy for the past few months and I have learned a lot.
But something has been bothering me and is that sometimes I don’t seem to remember the code exactly.
I mean, I can read it quite fine but I think I’m still too slow and I wan’t to be better.

Any advice?

If programming was about remembering code/syntax, computers would have taken over programming jobs a decade ago. We can always check documentation if don’t remember the syntax exactly.

The basic advice is always: Keep practicing, preferable regularly.

What also is important is to understand that programming is first and foremost problem solving. Which requires a lot of practice and you need to keep your mind sharp. This is a steady but slow process.

The desire to push and become better is also a good sign.