> var p = /abc/gi;
> var s = "abc";
> p.test(s);
true
> p.test(s);
false;
When I run this code on console of Chrome I Have this output above. Each time I call .test()
I get a different value. Someone could explain to me why this happens? thanks