const arr = ['1', '2', '3'] arr.map(Number) // [1, 2, 3] const arr1 = [1, 2, 3] let b = arr1.map(String) // ['1', '2', '3'] console.log(arr,arr1,b)