JavaScript is a front-end language in a browser, but using node.js it can also be used as a backend language.