JSFiddle - React, Tailwind, and code Playground

by irinablue

JavaScript

const a = [1,2,3]
const b = [...a]
b[2] = 4

console.log(a)