JavaScript is a scripting language mainly used to create and control dynamic website content. Unlike Java, which is a compiled, object-oriented language, JavaScript is primarily interpreted, event-driven, and object-based. JavaScript runs in the browser, while Java can be used for server-side applications.
console.log("JavaScript is lightweight and versatile!");