{"ScriptPreparationCode":"var strings = {};\r\nfor (var i=0; i\u003C1000; i\u002B\u002B) {\r\n strings[i] = \u0022\u0022\u002Bi\u002Bi;\r\n}","TestCases":[{"Name":"USING MAP and JOIN","Code":"const URLS = [\r\n {\r\n \u0022title\u0022: \u0022USPS\u0022,\r\n \u0022url\u0022: \u0022https://tools.usps.com/go/TrackConfirmAction?tLabels=\u0022\r\n },\r\n {\r\n \u0022title\u0022: \u0022Parcels\u0022,\r\n \u0022url\u0022: \u0022https://parcelsapp.com/en/tracking/\u0022\r\n },\r\n {\r\n \u0022title\u0022: \u0022EVEREST\u0022,\r\n \u0022url\u0022: \u0022http://everest.forwardex.com/m/track.asp?track=\u0022\r\n }\r\n]\r\n\r\nURLS.map(url =\u003E \u0060\u003Ca class=\u0022dropdown-item\u0022 href=\u0022${url.url \u002B \u0027doc.tracking_number\u0027}\u0022 target=\u0022_blank\u0022\u003E${url.title}\u003C/a\u003E\u0060).join(\u0027\u0027);\r\n","IsDeferred":false},{"Name":"USING REDUCE","Code":"const URLS = [\r\n {\r\n \u0022title\u0022: \u0022USPS\u0022,\r\n \u0022url\u0022: \u0022https://tools.usps.com/go/TrackConfirmAction?tLabels=\u0022\r\n },\r\n {\r\n \u0022title\u0022: \u0022Parcels\u0022,\r\n \u0022url\u0022: \u0022https://parcelsapp.com/en/tracking/\u0022\r\n },\r\n {\r\n \u0022title\u0022: \u0022EVEREST\u0022,\r\n \u0022url\u0022: \u0022http://everest.forwardex.com/m/track.asp?track=\u0022\r\n }\r\n]\r\n\r\nconst reduced_urls = URLS.reduce((acc, url) =\u003E {\r\n return acc \u002B \u0060\u003Ca class=\u0022dropdown-item\u0022 href=\u0022${url.url \u002B \u0027doc.tracking_number\u0027}\u0022 target=\u0022_blank\u0022\u003E${url.title}\u003C/a\u003E\u0060;\r\n}, \u0027\u0027);\r\n\r\n","IsDeferred":false}]}