Reverse String means inverted string. Suppose you have a string and you want this string will start from the last word to the first word. For your doubt, there is an example below :
let newString= ""
for(let i=0; i<restr.lenght; i++)
let everyWord = restr[i];
newString = everyWord + newString;
let reverseString = ReverseString(myString);
Null is a value that indicates a deliberate non-value and Undefined means that it is an uninitialized variable that hasn’t even been assigned yet.
This keyword is used depending on where it is used…
String, Number, BigInt, Boolean, Null, Undefined, Symbole
Without the above values, all rest values are known as a reference value. Such as:
Array, Object, Function, Date etc.
They are Number, String, Boolean, Function, Object, Symbole.
isNaN(): This function helps to test NaN(Not a Number) value. if it uses this global(isNaN()), it…