React is known as javascript’s library for user interfaces. The point to be noted here is that react is a “library,” not a framework like Angular or Amber. So, first of all, let’s discuss the differences between framework and library.

Frameworks are great for making applications easily. Also, there are already many smart designs that exist. But the problem is it’s not flexible, and one can not customize it according to their needs. If one wants to use a small portion, they have to use the whole thing.

Since react is a javascript library, so it has to be imported…

This article will discuss the top 10 questions that every js developer needs to know to excel in any interview.

Example of truthy values and false values

Any number is truthy other than 0. Any string is truthy other than an empty string. A white space inside a string, 0 inside a string are examples of truthy values. Undefined, null, NaN is falsy values. Empty array and objects are truthy.

How to get undefined?

If we declare a variable but don’t put any values, then it's undefined. If we call a function, but that function does not return anything, write return keyword but don’t tell explicitly what to return, if we…

ES6 was the second major revision to javascript which is also known as ECMAScript 2015. There are some drastic changes that are introduced in ES6. In this article, we are going to discuss the top 5 of those.

Block Bindings:

First, let’s look at this block of code:

Here, we may think that variable value exists inside the if loop. Wrong! After running this code this code looks like this:

The declaration of value has been hoisted in the top. Which means the variable value is still accessible within else loop. But this is not what we wanted. to solve this problem ES6 has came up with ‘let’ and ‘const’.

JavaScript is a light weighted, interpreted, a compiled programming language that runs smoothly in the browser. In this article, we are going to learn about some of the basic methods of JavaScript.


This method returns the character in a specific index of a string. To use this method, we have to provide an input string as well as an index number. Then we can found the character at that specific index.

Figure 01: Example of charAt method


This method concentrates two strings and returns a single new string. Here, we have two different strings, string1 and string2. After using the…

Web development is the building and maintenance of websites; it’s the work that happens behind the scenes to make a website look great, work fast and perform well with a seamless user experience. It is becoming one of the most attractive and best-paid career choices in the modern world and one does not need a traditional university degree to be successful in this field.

The field of web development is generally broken down into 3 parts.

  • Front-end
  • Back-end
  • Full-stack

Front end:

A front-end developer is someone who takes a client or design team’s website design and writes the code needed to implement…


To be or not to be that is the question.

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