結果 : javascript use variable if defined