JavaScript Fundamental Concept

Sofiqur Rahman
3 min readNov 3, 2020

We are discuss here JavaScript Fundamental Concept. It will be helpful for you.

1. JavaScript Data Types

Data types is an important concept. There have some data type as string, number, boolean, undefined, null, operator, objects, array etc. Strings are written with quotes. Booleans can only have two values true or false. Boolean are used in conditional statement.

2. JavaScript Errors

Sometime we are doing mistake in our programming. Then we need to fix this problem. JavaScript Errors help us to catch this error. When our project have bug this time our project don’t executed. But if we use try to catch then our project executed still has bug. That’s why try to catch is important.

3. JavaScript Comments

When we need some hints to our code but we don’t want to show this hints to our project that time we need javascript comment. JavaScript Comment has two type as single line comments and multi line comments. Single line comments start with //. Multi-line comments starts with /* and end with */.

4. Cross Browser Testing

When our project is ready then we need to test our project get ready to see all browser. It’s very important. Cross Browser means google chrome, mozilla firefox, microsoft edge, opera mini. if you discover bugs in browsers, you should report them.

5. JavaScript Let Const

ES6 has two important new javascript keywords let and const. Redeclaring a JavaScript variable with var is allowed anywhere in a program. Redeclaring a var variable with let, in the same scope, or in the same block, is not allowed. JavaScript const variables must be assigned a value when they are declared.

6. JavaScript Hoisting

Hoisting is JavaScript’s default behavior of moving all declarations to the top of the current scope to the top of the current script or the current function. JavaScript only hoists declarations, not initializations. If a developer doesn’t understand hoisting, programs may contain bugs errors. To avoid bugs, always declare all variables at the beginning of every scope.

7. JavaScript Arrow Function

Arrow functions allow us to write shorter function syntax. If the function has only one statement, and the statement returns a value, you can remove the brackets. Arrow function is es6 edition. Arrow function alter normal function but it is working is same.

8. JavaScript Function Parameters

JavaScript function definitions do not specify data types for parameters functions do not perform type checking on the passed arguments and do not check the number of arguments received. JavaScript functions have a built-in object called the arguments object.

9. JavaScript Spread Operator

Spread Operator for argument lists, … can be used anywhere in the array literal, and may be used more than once. Spread operator have contain many value. Spread operator is very important and it is reduce our many task. Spread syntax goes one level deep while copying an array.

10. Balancing Client And Server Caching in Web Application

A Web cache or HTTP cache is an information technology for the temporary storage caching of web documents, such as web pages, images, and other types of web multimedia, to reduce server lag. A web cache system can refer either to an appliance or to a computer program.

--

--