export variable vals from within async function to other js file

I am trying to export my variable values that populate from within a async function in .js file 1 (i.e. /events.js) to another function in .js file 2 (i.e. /loader.js) /events.js async function mapViewClickHandler(event) { // get coords A var coordinatesAx; var coordinatesAy; var coordinatesAx = ntoResults[0].mapPoint.latitude; var coordinatesAy = ntoResults[0].mapPoint.longitude; var mapPointCoordsA = coordinatesAx…

Details

How to identify the longest subarray containing the same amount of digits and characters?

Lets assume that an array is given, and you have to find the longest continuous subarray that contains the same amount of characters. For example we have an array of chars like (‘a’,0,’v’,2,4,7,’e’,’f’,’b’,2,5,2,1). In that case the longest subarray would be (‘v’,2,4,7,’e’,’f’,’b’,2), because it would be 4 characters and 4 digits. I have solved similar…

Details