JSFiddle - React, Tailwind, and code Playground

JavaScript

var a,b,c;
var arr = [1,2,3];
[a,b,c] = arr;
alert(a);