What I understood?
It shares some code between client and server as both are in javascript. eg: form validation.
How does this work? Can the shared code be seen from the browser? If yes then it becomes easy for an attacker to find loopholes in our code. Since the same code is being executed in the server side the attacker can pass through the server side validation too.
Are there any drawbacks or security issues if we follow this approach?