You'll need to know the minimal concepts of JavaScript, e.g. variable types (strings, integers, boolean, objects, arrays, etc), operations (especially joining strings).
Then, you should know about functions related to the DOM, e.g. document.querySelector(), maybe DOM tree traversal.
You can move up ...