JavaScript is a scripting language originally designed for web browsers to enhance user interaction. It was created in 10 days in 1995 and renamed to JavaScript from LiveScript. While commonly used in browsers, JavaScript is now also used for desktop applications, Internet of Things development, real-time applications, and serving large numbers of users on the backend through Node.js.