You are probably wondering what is nodejs used for? It is run-time environment based on JavaScript, that can be used as frontend and backend.