Double equal(==) is checking value but Triple equal(===) checking value and data type. Double equal is not stricter but triple equal is very stricter for value.
They have the same function, they are used to change the direction of this in the function. The difference between call, apply and bind is already clear.
a window is an object. but it is not a normal object…
Hooks were introduced in React latest version and are a huge boost for functional programming within React. With Hooks, you can, and should, make use of functional components instead of class components.
Even though we get the content on one array inside the other one, but actually it is an array inside another array which is definitely what we didn’t want. If we want the content to be inside a single array we can make use of the spread operator
// expand using spread operator
let arr = ['a','b'];
let arr2 = [...arr,'c','d'];
console.log(arr2); // [ 'a', 'b', 'c', 'd' ]
// output: >(4)[“a”, ”B”, “c”, “d”]
In ES6 we can write funtion in sorter way that is named arrow function . It is also more easier to read and write rather…
String.prototype.slice() method new returns a string without changing the original string
const word = ‘Success usually comes to those who are too busy to be looking for it.’;
// expected output: “usually comes”
// expected output: “those who are too busy to be looking for it.”
// expected output: “ for it.”
String.prototype.replace() method used to change special parts without changing the inside of any spring
I am Dewan Nishat Ahmed from Dhaka, Bangladesh . I am a Web Developer and content writter & Blogger.