Image for post
Image for post

Truthy and Falsy Value

In JavaScript we have different types of values. Of them most commonly and highly used values are truthy and falsy values. In this part we will discuss on it.

Truthy values

In which condition, truthy values may have-

Image for post
Image for post

What is ReactJS ?

ReactJS is a JavaScript library. It allows the programmer to create quick UIs. React is designed for the purpose of reuse components. You can define small components and put them together to form bigger components.

All the components whatever it is small or big are reusable, even across different projects.

Here we will discuss about some basic fundamental concepts about ReactJS.

Functions vs classes

Before releasing 16.8 version of react, there was a concept that only the use of class component can make a component “stateful” rather than functional components.

But, This has changed with the release of “React Hooks” beginning with React version 16.8, which was released in early 2019. After coming React hooks with new API, make a function component stateful and many other features. The class-based syntax is only needed for advanced and very rare cases. …

Image for post
Image for post

Block Bindings

In JavaScript, variable declare is an important factor. In variable declaration, it depends on which methods you will declare variable and where it will be. ES6 provides a new way to declare, so that you can more easily control the scope of variables.

Var Declarations and Hoisting

Variable declaration will applicable if the variable is hoisted on the top of the function or it will be treated global scope if they are declared outside a function. Example-

function getCity(condition) {
var value;
if (condition) {
value = "Dhaka";
return value;
} else {
// value doesn’t exist here
return null;
// value doesn’t exist here…

Image for post
Image for post

Data Types in JavaScript

In programming, data types is an important concept. There are six basic data types in JavaScript which can be divided into three main categories:

Let’s discuss each one of them in detail.

The String Data Type

The string data type is used to represent textual data. While writing string data we need to use single or double quotes surrounding one or more characters, as example-

Kawser Ahmed

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