I think your question is badly worded, and nobody noticed. If you have to look up for the syntax of javascript, you're in trouble. Because it can fit on a post-it. So you have to know it. Here is a reference: w3schools.com/js/js_syntax.asp
What syntax means is that it's HOW to write code, not WHAT to write. So globally, you have:
Now, what you mean, I think, is about the functions (some people here used the word API as well) and THAT is totally fine. We can't remember all the functions and parameters of all the languages we are using in our career.
Matthew Cory
Tagline not found.