JSFiddle - React, Tailwind, and code Playground
by Sahin Deniz
JavaScript
let a =[1,2,3];
let b = [];
a.forEach(el=>b.push(el));
a[1] = 0;
console.log(a);
console.log(b);
by Sahin Deniz
let a =[1,2,3];
let b = [];
a.forEach(el=>b.push(el));
a[1] = 0;
console.log(a);
console.log(b);