結果 : check if variable has string value javascript