According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match index property exists
so why below match.index returns unde