title: Javascript - Is test() and match() in javascript same?
body: <p>Is there any difference between test() and match()?</p>
  
  <p>I know both are used for searching a match in a string.
  My question is can we use both interchangeably in our code?</p>
  
  <p>Thanks in advance.</p>