To begin with, the JS that runs on the client browser is the frontend JS. This is the JS that is downloaded every time the user asks for your web application. Nodejs sits on the server and is never downloaded to anything. There is no merged ending and beginning. They are two disjoint sets.