Double equal (==) compares whether the two variables or values besides it, have same value or not. And triple equal check as same as the double equal and the types of those variables.
Example #1: double equal will check the values and return if it’s true or not
Describing about react.js, DOM, props etc.
React is a library which has been used for user interfaces. People make mistake that it’s a framework. But a library is much useful when it comes to a small thing to add into the interface. If you want to add an element we’ll…
Describing some tips and tricks about code writing, ES6 and many more.
Primitive values are not functions or objects and they cannot be altered. That means they are immutable. These are like constants.
Our Scripts can have errors due to our mistakes, unexpected…
The concat() method takes strings and concatenate them together as a new string.
const firstName = ‘Adam’;
const lastName = ‘Smith’;console.log(firstName.concat(‘ ‘, lastName));
//expected output: Adam Smith
Suppose you have a form which takes inputs like first and last name individually but you want to put that together in…