What is Javascript?

What is Javascript?

Javascript is a programming language that allows developers to create actions on their websites. But what is Javascript?, How did Javascript? are some of the questions that the following article tries to solve.

Javascript is a language that can be used by professionals and beginners in the development and design of websites. It requires no compilation since the language works client side, browsers are responsible for interpreting the codes.

Many confuse JavaScript with Java but both languages ​​are different and have their unique characteristics. Javascript has the advantage of being incorporated into any website, can be executed without the need to install another program to be visualized.

Java on the other hand has the main feature being a platform-independent language. You can create any kind of program that can be run on any computer in the market: Linux, Windows, Apple, etc.. Due to its characteristics it is also widely used for the Internet.

As a summary it can be said that Javascript is a scripting language based on prototypes, while Java is a more object-oriented language.

What is Javascript?

JavaScript is a language with many possibilities, used to create small programs that are then inserted into a web page and in larger programs, aimed at more complex objects. With Javascript can create different effects and interact with our users.

This language has several features, among them we can mention that it is a language based on shares held fewer restrictions. Furthermore, it is a language that uses Windows and X-Windows systems, much of the programming in this language is focused on describing objects, write functions that respond to mouse movements, openings, use of keys, loads of pages among others.

It should be emphasized that there are two types of JavaScript: on one side is running on the client, this is the Javascript itself, though technically called Navigator JavaScript. But there is also a Javascript that runs on the server is more recent and is called LiveWire Javascript.

How did Javascript?

Javascript was the need to allow authors to create website pages that allow trade with users, as they needed to create more complex websites. The HTML only allowed to create static pages where one could display text with styles, but are needed to interact with users.

In the 1990s, Netscape LiveScript think, the first versions of this language were mainly engaged in small groups of Web designers who did not need to use a compiler, or no experience in object-oriented programming.

As they were available new versions of this language included new potential components that language, but unfortunately this version only worked on the latest version of the Navigator at the time.

In December 1995, Netscape and Sun Microsystems (the creator of Java) after joining to develop the project together, reintroduced this language with the name of Javascript. In response to the popularity of Javascript, Microsoft launched its own programming language based script, VBScript (a small version of Visual Basic).

In 1996 Microsoft is interested in competing with Javascript so Launches language called JScript, introduced in Internet Explorer browsers. Despite the various criticisms that are made to the javascript language, this is one of the most popular programming languages ​​for the web. Since browsers include Javascript, do not need the Java Runtime Environment (JRE) to run.

JavaScript is a technology that has survived for over 10 years, is fundamental on the web, along with the standardization of the “European Computer Manufacturers Association” (ECMA) (later adopted by the ISO) and W3C DOM, Javascript is regarded by many web developers as the foundation for the next generation of dynamic web applications on the client side.

Javascript standardization jointly with ECMA began in November 1996. It adopted this standard in June 1997 and then also by the “International Organization for Standardization” (ISO). The DOM for its acronym in English “Document Object Model” was designed to avoid incompatibilities.

Where I can see running Javascript?

Among the many services that are made with Javascript in Internet include:

  • Mail
  • Chat
  • Information Seekers

We can also find or create code to insert into your pages as:

  • Watch
  • Hit Counters
  • Dates
  • Calculators
  • Validating Forms
  • Detectors browsers and languages

How to identify Javascript code?

de nuestras páginas web.”>The javascript code can find it within the <body> </ body> of our websites. Usually inserted between: <script> </ script>. They can also be located in external files using:

<script type="text/javascript" src="micodigo.js"></script>

Some features of the language are:

Its syntax is similar to that used in Java and C, being a client side language that is interpreted by the browser, no need to install any Framework.

  • Variables: var = “Hello”, n = 103
  • Conditions: if (i <10) {…}
  • Cycles: for (i, i <10; i + +) {…}
  • Arrangements: var myArray = new Array (“12”, “77”, “5”)
  • Features: Ppopias of language and predefined by users
  • Comments for one line: / / Comments
  • Comments for several lines:
    / *
    * /
  • Allows OOP: document.write (“Hello”);
  • Variables can be defined as: string, integer, float, boolean simply using “var”. We can use “+” to concatenate strings and variables.

Is it compatible with browsers?

Javascript is supported by most browsers like Internet Explorer, Netscape, Opera, Mozilla Firefox, among others.

With the emergence of languages ​​like PHP server side and client side Javascript emerged acronym Ajax (Asynchronous Javascript And XML). The same is a technique for creating interactive web applications. This language combines several technologies:

  • HTML and CSS Style Sheets to create styles.
  • ECMAScript implementations, one of which is the Javascript language.
  • XMLHttpRequest is one of the most important functions including, for exchanging data asynchronously with the web server may be using PHP, ASP, and others.

We should note that although JavaScript is supported in many browsers our users can choose the option to Enable / Disable Javascript in them.

What Is JavaScript?

What Is JavaScript?

JavaScript (sometimes abbreviated as JS) is a scripting language commonly implemented as part of a web browser in order to create enhanced user interfaces and dynamic websites.

It is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It uses syntax influenced by the language C. JavaScript copies many names and naming conventions from Java, but the two languages are otherwise unrelated and have very different semantics.

The key design principles within JS are taken from the Self and Scheme programming languages. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles.

JavaScript’s use in applications outside web pages — for example in PDF documents, site-specific browsers, and desktop widgets—is also significant. Newer and faster JavaScript VMs and frameworks built upon them (notably Node.js) have also increased the popularity of JavaScript for server-side web applications.

JavaScript was formalized in the ECMAScript language standard and is primarily used in the form of client-side JavaScript (as part of a web browser). This enables programmatic access to computational objects within a host environment.

Information from wikipedia.org