Today, we built a palindrome checker. Also learnt about some in-built function in JS.
- .value - It returns the value inside the text box.
- .substring(startingIndex, endIndex) - It returns the string from startIndex to endString-1.
- .toLowerCase() - It returns the string in lowercase.
- .split(input) - It converts the string into arrays, splitting the string from the input.
- .reverse() - It reverses the array.
- .join(input) - It joins the array with the input.