I'm beginner in JS
Can you help me with simple question, pls?
e.g. I have array such as:
const array = [{
id: 1,
name: 'Ferrari',
type: 'F40',
price: '350 000$',
country: 'Italy'
}];
How could I copy this array and make changes in copied array?
For example I need such array as:
const copiedArray= [{
id: 2,
name: 'Audi',
type: 'A7',
price: '100 000$',
country: 'Germany'
}];
Should I write some functions for this?
Thanks for your help!