Explore more on Js and web development

Rafi Chowdhury
2 min readMay 6, 2021

js event loop:

The event loop is the secret behind javascript asynchronous programming.javascript executes all operations on a single thread, but using a few smart data structures, it gives us the illusion of multi-threading. … Based on the command received from the call stack, the API starts its own single-threaded operation. this event loop can describe how javascript language is working.

Primitive value:

primitive value or primitive data is not an objects and primitive data has no method. there are seven types of primitive value such as- Strings​, Numbers​, Booleans​, Symbols​, Bigints​, Null​ and Undefined​.

Expressions:

as a programming language javascript cannot answer all of our question but if you ask somethings on its way it must answered. such as console.log(10*5); it must answer 50; so expressions are all those questions that javascript can answer.

Checking a type:

sometimes we need to check the types of a given value. we can do this things very easily by writing “typeof” at the first of the value. such as console.log(typeof(7)); it will answer the type of 7 and it must be a Number.

try..catch:

as a programmer always we have to face many king of error. sometimes those error occur for our fault and sometimes for browser. to handle those error we have a great solution and is called try…catch syntax. its structure is

try {

// my code

} catch (err) {

// error handling

}

by applying this syntax we can easily find our error.

codding style:

there are no must rule for codding style but we can take some reasonable step to increase readability of our programming code. such as long horizontal line is occurred to read so we can split them, we must use a semicolon at the end of the code, we must try to avoid nesting code in too many levels etc.

comments:

we always need to comment out somethings in our code. some best way of comment somethings is- we must try avoid explain what’s going on by a comment but we can comment on important solutions, especially when not immediately obvious.

Caching:

caching is the process of storing copies of files in a cache, or temporary storage location, so that they can be accessed more quickly. there are many types caching in a website such as- Client Caching, Server Caching, Hybrid Caching etc.

cross browser testing:

as a web developer we have to make sure that the site we have developed is fluently running on every browser. for this purpose we have to check cross browser test. cross browser test is checking that our making site is working in multiple browser. if there is somethings wrong to running our site in some browser we must take proper step to solve this.

arrow function:

arrow function is one of the features introduced in the ES6 version of javascript. It allows you to create function in a cleaner way compared to regular functions. For example, This function// function expression let x = function(x, y) { return x * y; } but in arrow function let x = (x, y) => x * y;

--

--