How can I perform automated web testing using JavaScript with Selenium WebDriver and NightWatch.js?

I want to know about how can I perform automated web testing using JavaScript with Selenium WebDriver and NightWatch.js. Can anyone please tell me how do i do it.