It is constructed either with the RegExp constructor or can be written as a literal value by enclosing a pattern in forward slash(/) characters. The…
Here, we are going to achieve palindromes in two ways. With inbuilt javascript functions Using for loops Provided test cases palindrome(“racecar”) should return true palindrome(“test”) should return…
Arrow function also known as flat arrows are more shorter compare to functions. Lets have a look at it. Here is a function written in…
Rest Parameter… It is denoted by 3 dots(…). The dots(…) means gather the remaining parameters into an array. Below shows the code of rest operator.…