JavaScript Hapus karakter pertama dari daftar array
var x = ["X2019","X2020","X2021","X2022"];
var y = x.map(s => s.slice(1));
console.log(y);
Borma
var x = ["X2019","X2020","X2021","X2022"];
var y = x.map(s => s.slice(1));
console.log(y);