JSFiddle - React, Tailwind, and code Playground by sunil puvvada February 15, 2018 JavaScript var substr = [1, 2, 3, 4]; $.each(substr , function(index, val) { console.log(val) });