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

前端 未结 8 1383
南方客
南方客 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 06:11

    There are 3 major types of JavaScript namely:

    1. Client-Side JavaScript (CSJS) -- an extended version of JavaScript that enables the enhancement and manipulation of web pages and client browsers

    2. Server-Side JavaScript (SSJS) -- an extended version of JavaScript that enables back-end access to databases, file systems, and servers

    3. Core JavaScript -- the base JavaScript language

    Client-Side JavaScript (CSJS) and Server-Side JavaScript (SSJS) are dependent on the core JavaScript and cannot work without it.

    Source

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

    I believe there is no other popular language than javascript which fits exactly as the client side scripting language. Coming to server side language similar to java(works on many servers but popularly apache tomcat),C# and python, javascript can also be used as Server side language best example is NodeJs(similarly Node also needs Node package to be installed on the server to run the script).

    for your question navigator being client side JS works on browser and Livewire works on server.

    Netscape Navigator 2.0 (and later versions) can interpret JavaScript statements embedded in an HTML page. When Navigator requests such a page, the server sends the full content of the document, including HTML and JavaScript statements, over the network to the client. The Navigator then displays the HTML and executes the JavaScript, producing the results that the user sees.

    LiveWire is an application development environment that uses JavaScript for creating server-based applications similar to CGI (Common Gateway Interface) programs. In contrast to Navigator JavaScript, LiveWire JavaScript applications are compiled into bytecode executable files. These application executables are run in concert with a Netscape server (version 2.0 and later) that contains the LiveWire server extension.

    Information source

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