Using the same programming language in both the front and back ends of the application has multiple benefits.For one thing, it makes data communication between server and client simpler and faster.
It makes modifications to either end easier. It also promotes reusing code across the multiple technologies that in turn helps keep the application secure and stable.