write a javascript multiplication function that will return two separate results

前端 未结 4 443
长情又很酷
长情又很酷 2021-01-27 01:11

As you can see from the embed below... my script is only returning one result(500). How can I rewrite my code so that I get both results? Thank you in advance for your advice.

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 01:33

    Or alternatively....

    function multiplier() {
      return { result1: 25 * 20, result2: 25 * 1 }
    }

提交回复
热议问题