Q:

Access an arrays item prop value with javascript

I have an array of div blocks and I am trying to access the innerHTML of the "time" tag for each one. How can I access this value?
<div class="review-full-review-single-review-wrap">
    <span class="review-full-timestamp">
        <time itemprop="datePublished" datetime="2015-07-29T11:25:47-07:00">July 29, 2015</time>
    </span>
    <p class="review-camo-rewards">Reward points earned</p>
</div>

<div class="review-full-review-single-review-wrap">
    <span class="review-full-timestamp">
        <time itemprop="datePublished" datetime="2015-07-29T11:25:47-07:00">July 1, 2015</time>
    </span>
    <p class="review-camo-rewards">Reward points earned</p>
</div>

A:

You can do:
var elems = document.getElementsByClassName("review-full-review-single-review-wrap")
for (var i = 0; i < elems.length; i++) {
    var timeElems = elems[i].getElementsByTagName("time");
    for (var j = 0; j < timeElems.length; j++) {
        console.log(timeElems[j].innerHTML)
    }
}

Demo: http://jsfiddle.net/q311LcL3/

