What is the best method to loop through an object and then update its properties according to this task below?

前端 未结 0 436
北荒
北荒 2020-12-15 02:55

I am trying to solve this problem:

"Use given object and loop through its properties - if it has property “discount”, print “Already discounted by…” and add

相关标签:
回答
  • 消灭零回复
提交回复
热议问题