JavaScript is a scripting language used for client-side web development, while Node.js allows JavaScript to be run on the server-side.