-3
Make a function to clone arrays. (Tip: clone = [ ...clone ]
)
Make a function to clone objects. (Tip: clone = { ...objeto }
)
let total = 3, array1 = [1,2,3]
const clonar = () => {
if (total === 0){
console.log('clonado');
}
}
console.log()
What is your difficulty?
– Augusto Vasques
how to think logic, not being able to clone
– reidner sousa
The hint is no longer the answer to the question itself?
– Rafael Tavares