結果 : python range equivalent in javascript