{"ScriptPreparationCode":"var primes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,97];\r\n\r\nfunction forEach(arr, callback) {\r\n let i = 0;\r\n while (i \u003C arr.length) {\r\n callback(arr[i], i);\r\n i\u002B\u002B;\r\n }\r\n}","TestCases":[{"Name":"Underscore each","Code":"var result = _.each(primes, (item, index) =\u003E {\r\n\tconsole.log(item);\r\n});","IsDeferred":false},{"Name":"While Loop","Code":"forEach(primes, (item, index) =\u003E {\r\n\tconsole.log(item);\r\n});","IsDeferred":false}]}