is nodejs code visible client side 1

is nodejs code visible client side

No, Nodejs code is not visible to the client. 

To be precise Nodejs is a javascript run-time environment, 
which means it is an engine that executes javascript code. 

The server code may contain endpoints, etc, which are callable by the client, 
and which return information from the server which is rendered in the 
browser, but the client cannot see the server-side code.

Here is what the above code is Doing:
1. We are importing the express module.
2. We are creating an express application.
3. We are creating a route for the application.
4. We are making the app listen on port 3000.

Similar Posts