It's both, while still predominantly a client-side language, it can be used as a server-side language as well.
Javascript has been a very versatile language for a long time. With the recent rise in popularity of Node.js it has become much more popular to use on the server as well. It was possible to do this before Node.JS (and Common.JS) were around as well though, and even command-line applications can be written in JavaScript.
Bookmarks