+ 2
is the javascript used for server side same as that of client side javascript?? i mean is syntax exactly same. i want to know difference. there must be some. i know node.js is used in backend and jquery,angular in front end, but overall they r javascript so why should it matter???. thanks in advance
3 Respostas
+ 2
The core language is the same on both ends. There are some restrictions however on what APIs that you can use. For example, you can't really perform many file operations on the frontend but you can on the backed. On the other hand, you don't have access to a document object on the backed. There is a concept called isomorphic JavaScript which allows you to restrict what operations you perform so that your code can run on the frontend and the backend.
+ 1
thanks
0
meteor