answersLogoWhite

0


Best Answer

JavaScript is primarily known as a client-side programming language, which means it runs in the web browser on the client's device (e.g., computer, smartphone). However, it can also be used on the server side, but it's not traditionally considered a server-side programming language like Python, Ruby, Java, or PHP. Here's why:

Execution Environment: JavaScript is designed to be executed in a web browser. Its primary role is to enhance the interactivity and functionality of web pages by manipulating the Document Object Model (DOM) and making asynchronous requests to servers.

Language Design: JavaScript was originally created for client-side scripting, so its core features and libraries are tailored for browser-based tasks.

Node.js: While JavaScript is primarily a client-side language, Node.js, a server-side runtime environment, was developed to execute JavaScript on the server. Node.js extends JavaScript's capabilities to server-side scripting, but it's distinct from traditional server-side languages in terms of its runtime environment and architecture.

Concurrency Model: JavaScript's single-threaded nature, designed for the browser, can limit its effectiveness for certain server-side tasks that require handling multiple concurrent requests efficiently. Node.js addresses this limitation by using an event-driven, non-blocking I/O model.

Server-Side Languages: Server-side programming languages like Python, Ruby, and PHP are specifically designed for building server-side applications and offer extensive libraries and frameworks for tasks such as database interaction, file handling, and server management.

In summary, JavaScript is primarily a client-side programming language, but it can also be used on the server side, thanks to environments like Node.js. While JavaScript's role has expanded to include server-side scripting, And if you are looking JavaScript Online Course then my suggestion is to contact Croma Campus.

For further information contact :- +91-9711526942

User Avatar

Ashu Pal

Lvl 7
8mo ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Javascript is not server side programming (instead, it's client side) because all javascript is run locally.

When you access a website that has javascript built into it, you download and run the javascript file along with other the website files (html, css, etc.) and it then runs alongside the website.

For comparison, a server side language runs on a server and I have to go now sorry

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why javascript is not server side programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science

What does server side relate to in the computer industry?

In the computer industry, server side refers to the operations performed by a server in a server-client computer relationship. The server side typically handles many functions to lighten the load of the client side's work.


How is PHP used in software development?

PHP generally is used to program the back end of websites. The parts that deal with databases and users/passwords, any program that stores information. It is used for most programs on websites today, it is completely server-side, unlike JavaScript or HTML which are interpreted by the web browser on the client-side. The server reads PHP which generally tells it what HTML or JavaScript to display to the browser. When you submit a form it may be handled by PHP as well. So for any sort of interactive website, or a site that needs a database or administration section PHP programming is essential. I may be slightly bias as I am a PHP programmer. One other thing, PHP among many other uses is also used for inter-changeable templates on websites, that is with the click of a button the website's template changes.


What is the purpose of PHP software?

To answer this question we must delve into the very nature of the Internet - the network of networks of networks. The HyperText Transfer Protocol (HTTP) defines a server as a computer connected to a network which receives requests for data and responds to them. A client is a computer which makes such requests and receives the responses. A proxy server performs both functions, operating as a middleman.A static web page is one which is necessarily the same upon every request; such a page normally has a .html or .htm extension. A dynamic web page is modified by a program which runs on the server, depending on any of several possible circumstances. PHP, a server-side scripting language, is a language designed for writing such programs.Note: PHP does not make pages dynamic in the same way as does JavaScript, a client-side scripting language. JavaScript is sent within a response and its instructions might be followed by the client. It can only change the copy of the page which was downloaded with itself and contact its origin server, unlike PHP which can access the server's filesystem and databases, and talk to other servers. However PHP is incapable of providing such a sleek user experience as JavaScript.


What proxy server can?

A proxy server speaks the client side of a protocol to another server. This is often required when clients have certain restrictions on which servers they can connect to.


Why Apache use in php?

If I understand correctly it is because php is primarily a web programming language and Apache is a popular HTTP server.

Related questions

Why java script is not a server side programming?

It is not impossible to code on server side using javascript as there are frameworks available today which lets use of javascript on server side. But usage of this is not that high as most people prefer the normal way of using AJAX if they want javascript to interact with a server side language.


Can you add Ajax requests in Ajax server page?

If you add javascript to the server page then it is possible. But it would be bad programming practise. Ideally the ajax requests should be on an external javascript file and that should be referenced by a client side page.


What skills are needed to become skilled web developer?

HTML/XHTML, CSS, JavaScript Server/Client side architecture Programming/Coding/Scripting in one of the many server-side frameworks Ability to utilize a database


What is the difference between javascript and java language?

JavaScript and Java are two different programming languages. Java is a server-side, statically typed language. JavaScript is a mostly client-side, dynamically typed language. Java supports heavy back end computations while JavaScript enables interactive AJAX ones.


What is client program?

As far as web programming is concerned, client side programming is code that runs in the web browser, rather than the web server. JavaScript is an example of client side scripting because the code is sent to the browser, at which point it is executed. PHP is an example of server side scripting because the code is executed on the server, and the resulting code is sent to the browser and displayed.


What is php is all about?

PHP is a server side programming language that also serves as a general purpose programming languages. What does I mean by Server Side? Well this means that the php source files are being run on the server as a opposed to the end user using their browser to run Javascript code which is a client-side scripting language. PHP allows for the creation of dynamic and interesting website design


How do you connect javascript using php?

Any communication between Javascript code and PHP code needs to be instigated by the Javascript. This is because Javascript is a client side script and PHP is server side. The server can't force data to the browser; it can only reply to requests. The technique of using Javascript on the client side to talk to server side scripts is referred to as AJAX (Asynchronous Javascript And XML). There are several libraries available for simplifying it's usage, and many online tutorials.


Is ruby programming client side or server side?

Ruby is a server-side language.


What are server-side scripting languages?

Server-side scripting languages are programming languages designed to create HTML pages (or Web pages) on the server. Special libraries are frequently included with these languages to help generate HTML pages easier. Some examples of server-side scripting languages are Python, PHP, Ruby, C#, and JavaScript (NodeJS).


What are the two types of scripting language?

In web programming you have: - Server side scripting: using languages like PHP, Ruby, ASP or JAVA - Client side scripting: usually meaning JavaScript, although there are others


Why is PHP considered a scripting language and not a programming language?

PHP is a programming language, just like Perl, Python, JavaScript, Basic and many other interpreted language.Note: the PHP interpreter can be integrated into the webserver, or run standalone.


How does files in javascript act as a backend?

Javascript is a client-side script, meaning it runs only in the browser. It has no access to the server. For access to the server, thus creating a back-end, you need to use a server-side scripting language such as ASP or PHP. If you want to make a more fluid interface, JavaScript and AJAX can be combined with one of the two aforementioned server-side scripts, effectively creating a back-end and a front-end.