Submodule 5.1: Introduction to JavaScript
Site: | ΕΛ/ΛΑΚ Moodle |
Course: | Study / Web Design and Web Development |
Book: | Submodule 5.1: Introduction to JavaScript |
Printed by: | Guest user |
Date: | Thursday, 21 November 2024, 6:38 PM |
Description
- Where can JavaScript be used?
- JavaScript is the is the dominant web programming language
- JavaScript is a programming language
Where can JavaScript be used
JavaScript is used in the browser. It can add interactivity by working together with the HTML and CSS.
With JavaScript we can modify CSS properties (eg change the color, or even the class of an element) and thus change the outcome that appears in the browser.
In addition, much common these days, JavaScript is over on the server side as well.
The popularity of JavaScript
JavaScript is the most commonly used programming language in web.
This can be viewed in the following image which displays the data of programming languages usage in a very famous website, the Stack Overflow.
JavaScript is a programming language
In contrast with HTML and CSS, JavaScript is a programming language.
We know that HTML is a markup language. We can use tags to construct a HTML file.
But what can we do with a programming language that cannot be done with a markup?
The answer is that a programming language can:
- Take steps and actions in a sequence
- Do looping ( do thing repetitively)
- Make decisions based on Data