# only update this
if (i % 3) == 0:
tmp_result.append("Fizz")
elif (i % 3) == 0 and (i % 5) == 0:
tmp_result.append("FizzBuzz")
# to this
if (i % 3) == 0 and (i % 5) == 0:
tmp_result.append("FizzBuzz")
elif (i % 3) == 0:
tmp_result.append("Fizz")
// update this
size = parseInt(process.argv[2], 16)
// to
size = parseInt(process.argv[2], 10)
# update this
result.insert(i - 1, i_arg)
# to
result.insert(i, i_arg)
that's it!