2/15/2020 11:35:21 AM


9 Answers

New Answer


It's a good question. Both frontend and backend can be any programming language and language doesn't matter for communication between them. In order for communication to happen both frontend and backend first agree that we will use same communication protocol. Most commonly used one is HTTP. Think of http as nothing but a common letter writing format and the HTTP request/response format helps achieve that communication between the two. Every programming language will have a http library through which it can support communication . There are other communication protocols as well. This one's a helpful article on http and understanding communication. https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview


bluesea Sir I mean how they both are connected since they are in different languages


They don't communicate. The backend spills out frontend. Like playing cards, I have five cards on hand, I don't communicate with my cards, I just choose which one to play. I am the backend, the cards are the frontend. Learn Node.js Here is a list of resources https://medium.com/@neetishop/best-learning-path-to-master-nodejs-97d25d53b763


bluesea how we can do that in which editor or app we can mix our front end code and backend one


What do you mean how they communicate? Every changing in backend affects frontend. Some changes in front end can affect some of backend. Frontend sends and retrieves data from backend.


It doesnt matter if they are in different languages . Programming languages can be mixed.


Each developer works his own editor or share the same with different accesibilities. For example a wordpress website has an administrator panel where authorized users have access and make changes and manage the site. Backend developers can write code in any editor and transfer it (as scripts) into admin panel. Frontends in sites rarely write code or write some lines of code only. They usually make changes by using the gui of the site administator page. Check this link: https://www.sololearn.com/Discuss/1654484/understanding-backend-vs-frontend/


You try with node.js it Will running


I think Backend code is built to be running on a server and it's never running on the user's machine frontend web application which are intended to be used directly by the the user's browser.