Posts by Ta Bom • 13 points
1 post
-
0
votes1
answer29
viewsQ: When I define a constant B = constant A and change one of the properties of constant B the property of constant A is also modified?
const a = new Map(); const construct = { nome: 'Nome', alguma: 'coisa' } a.set('Chave', construct); const b = a.get('Chave'); b.alguma = 'outraCoisa' console.log(a) // Mostra Map(1) { 'Chave' =>…