An Overview of JavaScript

Golam Rahman
2 min readNov 2, 2020

--

Simple Overview of JavaScript

JavaScript is world most popular programming Language. It is widely used for web Development. It also used for developing IOS and android apps. Those who are getting started into Programming, JavaScript is going to be a good choice.

Let’s get started with the basic JavaScript

1. JavaScript variable:

· JavaScript variable is like a container where you can put something and use it for later.

· There are different data types of variable, like — string, number, object, array, Boolean.

· You can also keep a function as a variable.

· To declare a variable you have to use JavaScript reserved keyword like var, let, constant.

· Variable is the most used thing in JavaScript which you can’t deny

Let’s understand different data types

2. Number:

Any types of number that we use in daily basis is also count in JavaScript as a number.

3. String:

String is declared using “” quotation. Whatever you write in this quotation considered as a string. Even if you write a number, that is going to be considered as a string.
For example: —

const Age = “30”; 

here 30 is a string, not a number;

4. Boolean:

Boolean is simply True or false;
In JavaScript , false, 0, empty strings (“”), NaN, null, and undefined all become false.
All other values become true.

5. JavaScript Operators

· JavaScript operator looks something like this +, -, *, / & %

· There are also some operator called comparison operator, they looks like this ==, ===, !==, <=, >=, <, >, &&, ||

· They have different functionality in different situation.

6. JavaScript Conditional statement

· There are three types of JavaScript conditional statement.

· They are if, if … else, if…. else… if

7. JavaScript loop

· JavaScript loop is used for continuous iteration

· It also used condition for loop

· Different types of loop in JavaScript are for, while, do while, break, continue

8. JavaScript array

· JavaScript array makes your works more easy

· Rather than declaring tons of variable you can declare an array and keep amount of value as much as you want

const array = [“rahim”, “korim”, “sokina”]

9. JavaScript object

· JavaScript object is used to store data of one variable with multiple value

· For example a computer contain a different types of parts, but all of this under the category of computer.

const computer = { H.D.D = 500gb,
RAM = 4gb}

10. JavaScript function

· JavaScript function is like a machine, where you put something in your machine and told a machine what to do.

· For example

 function (1, 2) {
console.log(1+2);
}

Result is going to be 3.

--

--

Golam Rahman

I am a passionate web developer, programmer & Photographer from Bangladesh