Overview Some things of Javascript behind the scene —

Hasan Rana
3 min readMay 6, 2021

--

Hello Everyone!!
This is Hasan Rana(Web Developer). Today I’m here to talk about 10 interesting things behind the scene of Javascript in front of you. Trust me I don’t waste your time. These things, you might know before as a good Developer. So you sit down on the chair read my article and note down in your notebook and be ready to grave a hot article of the beautiful Javascript.

1|TypeOf Method:

TypeOf is basically used for checking your data type.
There are 7 things of types of values.

  • Number
  • String
  • Boolean
  • Null
  • Undefined
  • Symbol
  • BigInt

2|Try and Catch Method.

Every developer makes some mistakes in their code. but mostly they do not find their mistakes. and this can happen javascript do developers life easy and that’s why they add in a feature called try-catch. if you lots of mistakes in your code then the try-catch method will help you to a found error in your function. and they also return an error message, error types, etc. javascript has lots of built-in constructors for standards error such as Error, TypeError, SyntaxError, ReferenceError.First of all, when you run your code javascript checks your code and if your is right then they ignore to catch the error. but when you mistakes in your code javascript find the error and return it in a catch method. and you can see the error in the developer console.

3|Cross Browsing —

Cross browsing means your site fits every browser. for example chrome, firefox, internet explorer, opera, Microsoft edge, etc. because your users not only use one browser or one device all users have used a different browser and different device so as a developer it's your responsibility to make sure that your web app/mobile app fit and readable every browser or devices.

4| Arrow Function —

An Arrow function and regular function are almost the same things. But arrow functions have some limitations. It’s not used as a method, not necessarily this keyword, not as a binding constructor or class in Arrow Function.

5| Spread Operator —

Spread Operator is Additional features of Javascript ES6.it can do the copy object and store in the different variables. also, it can happen to grow your code readability and clean.

6|Javascript Event Loop —

Javascript is a single-threaded, asynchronous Programming language. It means its one function returns at a time. if any function takes some time, javascript has ignored this and focuses on the next function. when all function returns are completed then javascript go ignored function see there is timeOut and when its time is out then javascript execute the function return.

7| Hoisting —

Hoisting is a built-in method in javascript. it's a very interesting thing in Javascript. it moved the function/variable at the top of the variable is global and executing first.

8| Var Declarations —

Basically, Var is a global variable.it means all the among browser you can call it. if you can return it on a nested function it also runs and shows its Output.

9| ES6 Let and Const —

Let,
Let is Modern Javascript/ES6 variable. this variable is editable. means you change the variable value. and its work in a function. from everywhere it does not respond.

Const,
Const is non Editable fixed Variable. which means if store a number/string using a Const variable, the next time when you need to change the value of a variable, you can’t do it.because the Const variable is non Editable Fixed Value.

10| Block Level Declarations —

When you create a variable using a Let/Const in the block scope. then you will never access/change outside the block scope. two major systems block-level declarations.
*once the variable declarations in the block scope.
* Another is to declare a variable in the functions.

hope its help you a lot, to understand how Javascript works behind the scene. so be ready for the next article where are many interesting things are waiting for you.
#Happy_Coding

--

--

Hasan Rana
Hasan Rana

Written by Hasan Rana

Assalamu Alaikum!This is Hasan Rana.I learn Web Developmet and i love to do Coding!!

No responses yet