This code is to dynamiclly change the condition , however, this statement is recognized and interperted by chrome but not fx , how to fix the problem ? thanks
if a % 2 == 0
var condition = b == c || b == d;
else
var condition = b == e || b == f ;
if (condition)
......
var someVarwill be hoisted to the top of the scope, so you only need to use thevarkeyword once per symbol.