Yes, JavaScript can be used for both front-end and back-end development. Node.js is a well-known JavaScript platform which enables programmers to execute JavaScript code on the server-side.