結果 : check if value is true or false javascript