Skip to content

re: What was the thing that made you finally 'get' JavaScript? VIEW POST


When using JS on the web, for me, the units of understanding are:

  1. The Document Object Model (you may have already interacted with this using CSS). Being able to understand that all the elements on a page are arranged in a tree and how to move the branches around.

  2. Callbacks. JS can be a little unintuitive because of its asynchronous nature. Understanding callbacks makes most of this clear.
    Eventually this understanding leads to all the shenanigans with promises, but I believe callbacks to be the unit of understanding.

  3. Methods. From elements of the DOM tree, to inbuilt classes, to libraries, most things are interacted with using methods.
    I suggest going through things in the MDN documentation to see their methods. E.g. the JS Date class.

code of conduct - report abuse