Teach yourself JavaScript

https://www.geeksforgeeks.org/javascript-tutorial/

Developing custom sections in JavaScript
...