My script uses an array like this:
var locations = [ ['Location 1 Name', 'New York, NY', 'Location 1 URL'], ['Location 2 Name', 'Newark, NJ', 'Location 2 URL'], ['Location 3 Name', 'Philadelphia, PA', 'Location 3 URL'], ];
I have a page with two list webparts (A and B). webpart A/List A has two columns
Title and Address
I've tried ANYTHING javscript related for sharepoint, but nothing seems to run.
i have script.js in my SiteAssets folder and in a CONTENT EDITOR webpart i added the call for the script
<script src=pathToMyScript> </script>