Hey, it’s very interesting because today I am going to discuss and implement the most important Data Structures in Computer Science such as Stack, Queue, Linked List, Trees, and Hash Table. Let’s dive into it.
Stack is LIFO (Last In First Out) data structure which principle is the last element added to the Stack will be the first element removed from the Stack. We can do two things using Stack. …
Component is a small piece of UI. Everything in the react application is a component. We can create every portion of every react app using component. Component is like a function that has input argument like props and it renders different things in Browser as its output. We can create a component for different cases.
There are four things to identify a component. …
Function is like a machine, which reduces our repeated task in our daily programming. It has three parts like input, processing, and output. In input, we will provide our data or value. In processing, that machine will process or manipulate our input data. …
It used to add or concatenate multiple array to one array. When we need to add or concatenate one more than array, we can use it.
const arr = [32, 34, 54, 65, 34]
const anotherArr = [76, 45, 65, 80]const result =…
It used to add or join multiple strings to one string. When we need to add one more than string, we can use it.
const firstName = "Jhon";
const lastName = "Doe";
const title = "2nd";// Concatenation between two String.
const twoStr = firstName.concat(' ', lastName);
Equality Operator consists of two equal: ==
It used to check only the value between two elements. If the values are equal, it returns true otherwise returns false. When you want to check only the value of elements, you can use it.
Strict Equality Operator consists of three equal: ===
It checks not only value but also Data type between two elements. It returns true when the value and data type of operands are equal otherwise it returns false. It’s best practice for comparison. …