Sign in

1. Difference between double equal (==) and triple equal (===)

Double equal (==) check only value but triple equal (===) check value and variable type.

Example:

Double Equal (==)

Double equal check only value so the output is true.

Triple Equal (===)

5 is an int type and another “5” is a string type. Their data type is not similar that's why the output is false.


React Js

React is not a framework

React is just a library where you make all decisions by yourself. React is a user interface using components. The framework is where some decisions make already. Angular is a framework where already some decision build.

Rendering Works

Every setState call informs React about state changes. Then, React calls the render method to update the component's representation in memory and compare it with what’s rendered in the browser. Child components know that they need to re-render because their props changed.

React don’t need Flux

Redux is great. But you might not need it.

React Optimizing Performance

Create react App:

npx create-react-app my-app
cd my-app
npm start

JavaScript Coding Style

Code must be as clean for an easy read as possible.

Syntex: Here is a cheat sheet with some suggested rules (see below for more details):


1. JavaScript Types

  • Number
  • String
  • Boolean
  • Object
  • Null
  • Undefined

2. Createing Strings

You can use single or double quotes:

Example:

Creating String with single and double quotes

You can use Template Strings

Example:

Shihab 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