Ans: The value of a variable should be true when it’s a natural number for a number type variable, any string with a letter sign, or with space.
Here some examples when the value should true:
1. When the variable should define by true.
2. When the variable is number type and its value is natural number without 0.
3. If the variable is a string type and the value is not an empty string. If I was given a space in “ ” it’s true.
4. If the value is not undefined.
5. If the value is not null.
So now, I write 10 important things that you should interest to know.
1. It’s not a framework
React is just a library and it can’t decide without you. But it helps you to use his component and build the user interface. It has some weaknesses that it doesn’t create server communication, can’t translate, can’t routing, and many others.
Here you are a great programmer, but sometimes our scripts have some errors. It happen when I made mistake, a wrong user input, or the server not responding. Generally, a script immediately stops for an error, printing it to the console. But we use try-catch syntax to catch the error.
The “try-catch” syntax:
let allow us to declare block-level variables and the value of the declared variable can be changed.