結果 : how to write pseudocode in javascript