JavaScript Tips for Algorithm
String Tips Light cloning Use regexp for .replace(a,b) is exchange first letter of first argument to second argument. For convert every matching letter, put the letter inside regexp, . example Convert Number There are a lot of ways to convert strings to numbers, but is recommended. Plus, It…