JavaScript is a dynamic programming language that is compiled at runtime and can be executed in web browsers or directly on machines to make webpages more interactive. Originally called LiveScript, it was renamed to JavaScript due to the popularity of Java, though it is unrelated to Java. JavaScript runs on the client-side in browsers to modify webpage content and respond to user input, submitting requests to the server and receiving responses without reloading the page.