Answers for "save array file"

0

save array file

var array = [{
    x: 0,
    y: 0
}];
var a = document.body.appendChild(
    document.createElement("a")
);
a.download = "export.txt";
a.href = "data:text/plain;base64," + btoa(JSON.stringify(array));
a.innerHTML = "download example text";
Posted by: Guest on September-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language