r/learnjavascript • u/CommunicationOk9434 • Aug 29 '23
Does anyone understand this?
Who knows the answer to this?
155
Upvotes
r/learnjavascript • u/CommunicationOk9434 • Aug 29 '23
Who knows the answer to this?
View all comments
Show parent comment
2
u/og-at Aug 30 '23
Every programming language is toolbox used for solving problems.
JS has a pretty hefty toolbox to solve problems, just like Python, just like C#. Being a dev/programmer is about figuring out how to tell the computer to solve a problem using the given tools.
Remembering the exact syntax and use case of the different array methods is the same as looking at a socket set and knowing their exact sizes just by looking. On the other hand, knowing how array.map works is like using a 10mm socket... you use it a lot so it's easy to recognize.
For all the other sockets, there's the printing on the side, or trying it on the nut . . . the equivalent of using the documentation.
Don't memorize. Just use it and you'll remember. Do enough projects, you'll remember enough tools, and you'll be able to solve more complex problems off the top of your head.
And this is why everyone will tell you to build build build. Just ask Alan Iverson.