Answer: Truthy and False values are the boolean expressions. Where truthy are expressions that evaluate to a boolean true value and falsy evaluates to boolean false value.
Some fundamental concepts of React JS are described below
Components: React is component-based. Components…
1. Variables and function names must be camelCase.
2.Always try to use const and let instead of var.
3. Always use semicolons(;).
4.Use curly brace in the same line after space.
5.Use a space between parameters.
6.Don’t use space between the function name and parentheses.
7. Use Spaces around operators
8.Use colon plus one space between each property and its value.
List of some string & number method
const first = ‘Beautiful’;
const second = ‘Bangladesh’;
console.log(first.concat(‘ ‘, second));
//output: “Beautiful Bangladesh”
2. charAt(): If you have a string and want to know the index number of a specific character, then you should use the charAt() method. Index of the first character is 0.
const string= “Beautiful Bangladesh”;
const result = string.charAt(5);