如何在现有Javascript中为键添加附加值以及如何填充它?

我有一个对象

const ABC = {
    xxx: 50.00,
    yyy: 50.00,
    zzz: 60.00
}

In this 1st field is for Name, 2nd for price. How to add a new field for count (like xxx: 50.00 2). Also how to pick that 3rd field. First field can be obtained by key. 2nd field is its value. How about the count field. New to this,so kindly excuse in case this is an simple question. Thanks in advance.

评论