how to program an array in js

JavaScript
var myString = "";
        var b64 = btoa(myString);
        var unicode = atob(b64);
        function getString(s) {
            myString = s;
        }
        getString("Hello my Name is Michael i am an Javascript Engineer");
        console.log(b64);
        console.log(unicode);
Source

Also in JavaScript: