JavaScript

JavaScript JavaScript is a multi-paradigm programming language. Supports object oriented, imperative and functional styles. JavaScript is commonly used as an embedded language for programmatically accessing application objects. One of its widespread uses is in browsers as a scripting language to add interactivity to web pages.

JavaScript was originally written to make web pages "live". Programs in this language are called scripts. In the browser, they connect directly to HTML and, as soon as the page loads, they are immediately executed.

JavaScript programs are plain text. They do not require any special training. In this regard, JavaScript is quite different from another language called Java.

Modern JavaScript is a general-purpose "safe" programming language. JavaScript scripts can be executed anywhere, you just need a special program - an interpreter, and the process of executing a script is called "interpretation". Almost all browsers have a JavaScript interpreter built in, so they can execute scripts on the page. But JavaScript can be used not only in the browser. It is a full-fledged language, programs in which you can run on a server, and even in a toy car, if the appropriate interpreter is installed in it.

JavaScript example As for the other features, they depend on the environment in which JavaScript is running. In the browser, JavaScript can do everything related to page changes, interaction with the visitor and, to some extent, with the server, but unlike PHP, JavaScript is executed on the client side, not the server. There are at least three good things about JavaScript:

  • Full HTML / CSS integration.
  • The language is quite simple and does not require high-level knowledge to learn it.
  • It is supported by all major modern browsers and is enabled by default.

These three things are simultaneously missing from other browser technologies, which is why JavaScript is the most widely used language for browser interfaces

<< MySQL

ruen