結果 : string is undefined javascript