What is client side javascript and what is server side javascript?

前端 未结 8 1381
南方客
南方客 2020-12-08 05:29

Will any one please explain me what is server side java script and client side java script

Because I recently heard about livewire JavaScript is server side and navi

相关标签:
8条回答
  • 2020-12-08 05:56

    Client side java script comprises the basic language and predefined objects which are relevant to running java script in a browser. The client side java script is embedded directly by in the HTML pages. This script is interpreted by the browser at run time.

    Server side java script also resembles like client side java script. It has relevant java script which is to run in a server. The server side java scripts are deployed only after compilation. Server-Side JavaScript (SSJS) . It is JavaScript that enables back-end access to databases, file systems, and servers.

    0 讨论(0)
  • 2020-12-08 06:02

    These two terms are used in the context of web. Client-side means that the JavaScript code is run on the client machine, which is the browser. Server-side JavaScript means that the code is run on the server which is serving web pages.

    0 讨论(0)
  • 2020-12-08 06:03

    For most part in the modern web, javascript is 99% times client side (yes I made up the statistic).

    That said, javascript is just another language. Back in the olden days, there was the Netscape Enterprise Server (NES it was called) which allowed scripting in javascript.

    Modern web servers support scripting langauges like php, python etc. Its unfortunate that js is not big on the server side. Its the single most beautiful language I've encountered: the syntax of C, with the power of something like Lisp.

    The conventional client side usage of javascript alludes to its use in the web. I'm sure you know all about javascript on the web (if you are intelligent enough to ask about ssjs).

    But some unconventional uses of javascript:

    • However, Qt has found use for javascript in its framework. Qt applications can be written to be extensible by addons written in javascript. I think its pretty cool.
    • There is also Rhino, that compiles javascript into Java.

    Cheers!

    0 讨论(0)
  • 2020-12-08 06:05

    Client-side javascript allows you to make possible some user interactions, by for instance changing the DOM, adding events to html elements, etc..

    On the other hand, server side javascript, allows to exploit the javascript in its entireness by building more scalable, event-driven and non I/O blocking applications. One example of server side javascript environment is NodeJs.

    Moreover, in this way the learning curve for both client and backend developers in learning javascript is diminished, since both talk the same language.

    0 讨论(0)
  • 2020-12-08 06:07

    One runs in the browser (client side), the other runs on the server. JavaScript is commonly believed just to run on browsers- this is incorrect. When I was a classic ASP developer we had the choice of VBScript or JavaScript server side (we also had the choice of JavaScript or VBScript client side too).

    0 讨论(0)
  • 2020-12-08 06:08

    You may visit here for details :-) http://net-informations.com/js/iq/side.htm

    0 讨论(0)
提交回复
热议问题