javascript boolean regex match

Solutions on MaxInterview for javascript boolean regex match by the best coders in the world

showing results for - "javascript boolean regex match"
Florine
01 Nov 2018
1//RegExp.prototype.test()
2
3str = 'ok';
4regex = /ok/;
5
6console.log(regex.test(str)) // => true