結果 : check if string is true or false javascript