The most popular reason for calling Javascript confusing is its implicit typecasting [changing data type of variables by itself] and its asynchronous nature. Here is discus some JavaScript confusing things.

The truthy value is a value that is considered true when it’s in a boolean That’s mean each value also has an inherent boolean value, generally known as either truthy or falsy.

The following values are always falsy:

  • false
  • 0 (zero)
  • ‘’ or “”(empty string)
  • null
  • undefined
  • NaN

Everything else is truthy:

  • ‘0’ (a string containing a single zero)
  • “false” (a string containing the text “false”)
  • [] (an empty array)

React is just a javascript library and you need to make all decisions by yourself. It focuses on helping you to build user interfaces using components. It’s fast, scalable, flexible, powerful, and has a big developer community and a lot of resources that’s help you any problem and situation.

The virtual DOM is only a virtual representation of the DOM. Every time the state of our application changes, the virtual DOM updated instead of the real DOM. Virtual DOM is faster becuase when new elements are added to the UI, a virtual DOM is created a tree. Each element is…

I hope you are a web developer. Maybe you are even self-employed or working as a freelancer Maybe you are just starting out as a web developer. However comfortable you are with JavaScript, it is always good to get a refresher on some topics to read up about or get them on the radar in the first place. Here are 10 things you definitely have to learn before you can call yourself a master in JavaScript.

Error handling is important for all languages. Error handling is just as important in JavaScript. If you do not handle the error, the app…

1. Concat

The concat() method is both used in string and array. In String concat() method concatenates the two or more sperate string and return a new string. In array concat() method is same working like string concat() operation. Here concat() method is used to marge two or more arrays. And it behaviour also same as string concate(). Array concat() method is return a new array without changing existing arrays. The concat() method is resive one or more parameters for that is conneting the initial string or array.

2. IndexOf

The indexOf() method is both used in string and array. In String indexOf()…

HrDelwar Pro

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store