Array within an Array

Pretty complex! It would be easier to simply use JavaScript notation here. JS refers to arrays using square brackets instead of round. When you do this, you don’t need the Array() function any more:

GolfCourseArray = []
  Push(GolfCourseArray, _
    ["Balboa Park","San Diego,CA",0,"",0,"", _
      [[0,4,5,4,4,4,3,5,4,3,4,4,4,3,5,4,5,3,4], _
            [0,15,5,9,1,13,3,7,17,11,6,10,4,18,12,14,2,16,8], _
            [["Blue",71.2,125], _
                  ["White",68.7,119], _
                  ["Red",66.8,114]]], _
      [[0,4,5,4,4,4,3,5,4,3,4,4,4,3,5,4,5,3,4], _
            [0,10,4,12,8,14,6,2,18,16,5,11,7,17,3,15,1,13,9], _
            [["Blue",77.5,134], _
                  ["White",74.2,129], _
                  ["Red",72.8,128]]]])

Here’s what console.log then shows:
Screen Shot 2020-04-08 at 11.07.46 AM

Share your story with the AppStudio Community! Quarantine Stories