_) was introduced to make numbers more readable by creating a visual separation between groups of digits. The separator can be used with decimal, binary, hexadecimal or BigInt numbers. This feature was introduced in ES12.
It is difficult for humans to read large numbers quickly. What about 1000000000? Is it a billion or 10 million?. Numeric separators make developers’ life easy.
const num = 1000_000_000; // Definitely a billion
Numeric separator is purely for visual separation. It does not have any impact in the functionality. In fact, comparing a number with separator and that without it, results in
Primitive values are immutable. That means a primitive value once…
Here is an example of a variable declaration.
name is pointing towards some memory location in RAM. One of the ways to store some value to that memory location is by using the assignment operator(
name = "Backbencher";
var can declare either global scoped or function…
In a typical React project, we use Babel and Webpack. Babel is used to convert JSX and ES6 to pure ES5 code. Webpack is used as the bundler. It will be helpful if we have a code base to start with any React project. That is what we are trying to do.
We need Node.js and NPM to download and install Node packages like React, Webpack and so on. We can download and install from their official site. When we install Node.js, automatically NPM is also installed.
We can also install Node.js using NVM. If we use NVM, it is…