If you are learning how to code you NEED to absolutely ignore the 'I feel dumb' feeling. It's perfectly okay to not understand a concept, its okay to not understand what you are doing initially. Everyone that knows what they know now, is going through this phase.
Development takes time, you’re not dumb
D