This guy ( Ayushv ) knows his JavaScript – you might want to check out his “medium” based blog posts on the subject.
https://ayushv.medium.com/
Functions are “high order” – are javascript objects – and can be passed as parameters “Fat Arrow Functions” easily allow anonymous functions. A function invokation can be defined immutably with the const keyword JavaScript provides a “spread notation” when calling a function to allow a variable number of parameters. JavaScript allows function recursion – a …
JavaScript features that lend themselves to functional programming Read More »
Selenium find element by name, id, xpath etc for java, python etc. supported languages. https://riptutorial.com/selenium-webdriver/example/13934/locating-page-elements-using-webdriver Additionally, if writing/accessing selenium API in javascript for web automation, there is a binding for Node.JS named webdriver.io which is really good
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro codepen.io jsbin.com