結果 : check if value is positive or negative javascript