Is JavaScript a server-side development language?

青灯夜游
Release: 2021-10-08 15:45:42
Original
2915 people have browsed it

No, JavaScript is a client-side scripting language. It does not require server support. It is an interpreted scripting language and is mainly used on the client side. However, JavaScript can be run on the server side through some frameworks, such as node. .js, which can be used for server-side programming based on Node.js technology.

Is JavaScript a server-side development language?

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

JavaScriptis an object- and event-driven and relatively safe, object-oriented, interpreted programming language. Specifically, it is a client-side script. language. Operation depends on supported browsers.

JavaScript is mainly used as a client-side scripting language to run on the user's browser and does not require server support.

Features:

1) Looseness: variables do not need to have a clear type

2) Object attributes: objects can map attribute names to arbitrary attribute values

3) Inheritance mechanism: based on prototype

Composition:

1) Core (ECMAScript)

2) Document Object Model (DOM: Document Object Model): for The API (application programming interface) of HTML and XML depicts a hierarchical node tree, allowing developers to add, remove, and modify a certain part of the page. It is a truly cross-platform, language-neutral way to express and operate page markup.

D: The web page document loaded by the entire web

O: Something similar to the Window object, which can call properties and methods

M: The tree structure of the web page document

3) Browser Object Model (BOM: Browser Object Model): Provides many objects for accessing browser functions.

But JavaScript can be run on the server side through some frameworks, such as node.js. JavaScript is based on Node.js technology for server-side programming.

[Recommended learning:

javascript advanced tutorial]

The above is the detailed content of Is JavaScript a server-side development language?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!