Myselfpla isolate all the js Code in files and use event listeners instead embed in the dom element. You shouldnt use numbers as ids, thats error prone.
— Heyy
— What is use of myFunction ();
— After var
— It runs it
— anyFunction(); // run the function
— Just launched in Medium my Binary Trees article. Find out more here: https://medium.com/alonso.oliverio/data-structures-in-js-binary-trees-react-app-5443b951a46b