JavaScript is a text-based object oriented programming language. The main function of Javascript in web development is to make websites interactive. Javascript improves users experience, it provides functions that help turn a static website into a dynamic one.