2 ms·
Do you mean actual syntax, like how to define and call classes, methods, variables, loops, if-thens, etc? Or API definitions, like the standard classes, the met
by ufmace 11y ago
Do you mean actual syntax, like how to define and call classes, methods, variables, loops, if-thens, etc? Or API definitions, like the standard classes, the methods available on them, what classes they return and what you can do with those classes, the best-practice way to do various things?
You should have a pretty good handle on the syntax after a week or two writing original code in that language. And other languages get easier after you learn the first one or two pretty well. But that's the easy part.
The hard part is the API definitions. Most good languages/frameworks have such massive standard libraries and sets of common add-ons that very few people can be certain of the details of more than a small portion off the top of their heads. You tend to memorize a good bit after working on it for an extended amount of time, but Google and autocomplete will always be your friends.
But for any school-type tests on programming, you'll want to pay close attention to exactly how they're grading. That may tell you a lot about what you need to do.