내장 객체 JSON의 .stringify 사용
const array = ["a", "b", "c"]; const str = JSON.stringify(array); console.log(str); // displays "[\\"a\\",\\"b\\",\\"c\\"]"
const array = JSON.parse("[1,2,3,4]"); console.log(array); // displays [1, 2, 3, 4]