JSFiddle - React, Tailwind, and code Playground

by akhildev

JavaScript

let a = [1,2,3];
let v = a.map((val)=>{

return setTimeout(function(){ 

 }, 2000);

/* 
return val; */
})
console.log(v);