Introduction to JavaScript


عضو جديد
8 فبراير 2022

What is JavaScript?​

JavaScript is a scripting language that is considered one of the most popular programming languages used in the developer community. JavaScript makes your web page more interactive and livelier. JavaScript is not only used in web development but also in developing games and mobile applications.
It was developed in 1995 by Brenden Eich and first appeared on Netscape

It was launched under the name LiveScript, but it was changed to JavaScript. JavaScript is completely different from Java, as Java is a more complex programming language, Java is a multi-platform object-oriented, one of the most widely used languages that were launched in 1995 by Sun Microsystems, but was eventually bought by Oracle., while JavaScript is a text-only language and It is easier to learn and write codes in, and it is also considered a language with multiple platforms.

How does JavaScript work?​

JavaScript does not work by itself since it is a text language, it needs the browser to run its code. When searching or requesting an HTML page, the browser sends it with JavaScript embedded in it. The text is sent to the browser and it automatically executes it and displays it on the web page.
One of its most important features is that all modern browsers work with it

Tools you need to write the code​

First, you need a text editor to write the code and you need a browser in order to view the web pages that you have developed.
Among the most famous text editors:
  1. Notepad++
  2. Visual Studio Code
  3. Atom
  4. Sublime Text
As for browsers, Google Chrome, Firefox, and Microsoft Edge are on top.

Simple JavaScript code example​

It is important to always place JavaScript code within <script> tags if you have code in the HTML pages themselves. This will help your browser to distinguish between your Java code and the rest of the code.


If you want to write the word "Believe"



<title>My First JavaScript code!!!</title>

<script type="text/javascript">







Note: In HTML5 it is not important to put type=”text/javascript” Try it and the code will work for you properly.

JavaScript, as we explained previously, is currently considered one of the most popular and widely used programming languages among the developer community. You should learn it now, as advised by Talent Supplier, one of the largest software and outsourcing companies in Egypt and Jeddah.
التعديل الأخير:


العبد الفقير إلى الله
طاقم الإدارة
9 مارس 2008
Thanks for your post, but sorry to tell that if you have to post in English, you may need also to add Arabic translated content for the same post. As our forums first language is Arabic.