Netcompany interview question

How does frontend communicate with backend