jeudi 20 août 2015

RegExp javaScript error test

This case is an Error?

execut in firebug

altern = /raeeoCott/ig // 


for(var h = 0; h<3; h++)
 for(var i = 0; i<5; i++)
  if(altern.test('raeeocott'))
    console.log('ddd')


h=1 :: (8 true); ?????

// 5 * 3 = 15 != 8 

why is this happening?

Aucun commentaire:

Enregistrer un commentaire