Skip to main content

Introduction to JavaScript

Javascript logo
JavaScript(JS) is lightweight interpretive high-level programming language. Invented by Brendan Eich, it was first released in December 1995. Today it is the most popular language used on the web (and the world too)1. JavaScript should not be confused with Java. The name JavaScript was adopted in order to popularize the language since Java was already known at that time.


Initial name: LiveScript
Official name: ECMAScript
Inventor: Brendan Eich
Date released: December, 1995


JavaScript can be used to write browser-centric(client-side) and server-centric(server-side) scripts, that is scripts which run on the browser and on the server respectively. And so JavaScript is both a client-side and server-side programming language. Node.js is a server-side implementation of JS.

Some uses of client-side JavaScript

  1. To dynamically manipulate elements(structural and presentational elements) on a web page.
  2. To create and manage web cookies.
  3. To validate data input in a form.
  4. To react to user events.

Some limitations of client-side JavaScript

  1. It can be blocked or disabled by a user. Once this is done your script won't execute.
  2. It cannot be used to read or write data on a user's operating system. So by implication you cannot read or write data to a file or database. This is for security reasons.




Bibliography


Popular posts from this blog

Can I use Mendeley with LibreOffice Writer (on Windows)?

The answer is a big yes! Mendeley works with Microsoft Word as well as LibreOffice Writer. As you may know, LibreOffice is a free and open source software suite and can be downloaded from here . To get Mendeley, download from here . Having installed the two software, do the following: 1: Open Mendeley, go to Tools → Install LibreOffice Plugin 2 : Open LibreOffice Writer. You should see the newly added Mendeley tools just below the menus (as seen below). And that does it!

PHP Database Connection using NetBeans IDE 8.1 with WampServer

The aim of this tutorial is to show you how to use PHP in connecting to a MySql Database using the NetBeans IDE 8.1. Have it in mind that there are several ways of doing this but we'll be looking at just one - a basic one.

Working with PHP in NetBeans 8.1 using WampServer

The aim of this tutorial is simple to show you how to work with PHP using WampServer with the NetBeans IDE 8.1