Oh man, that's totally normal when you're starting out. What helped me was just writing code every day, even if it was messy and full of mistakes (seriously, my early projects were a mess). Keeping a simple text file with bits of code you use often can act as a quick reference until it sticks in your memory. The more you actually use the syntax, the more it becomes second nature, so focus on building small things. Don't be afraid to look stuff up constantly, that's how everyone learns at first.