In JavaScript, we can use the search method to check if the string matches a regular expression. ... let foundAtIndex = string.search(/(doctor|painter)/);.
確定! 回上一頁