Never, ever memorise anything in programming. Understand what the language is used for and how to solve problems with it.
Imagine someone who is learning a foreign language (say, Italian), asking someone else if they need to memorise all books that were written in Italian to successfully learn the language.
Your question proves that you’re very early in your coding education - stay focused on the basics and make sure you understand why you’re using certain tools and don’t focus on how.
You will eventually memorise how by doing. But make sure to get your why sorted first.