User blog comment:Jens Ingels/API project/@comment-5077844-20150418204943/@comment-4091261-20150419175140

From my guess,--with my oh so basic knowlege in my C++ class--this is an attempt to gather all the information of the items in an array, being the, "Riot API." Now being an utter noob at this stuff, I can't really understand some of the smaller things in this code, but I can say the major functions logically make sense.

For example: for ( i  = 0 ; i < items.length ; i++ )               { items2  = items[ i] ; console.log <span class="br0" style="color:rgb(0,153,0);">( api<span class="br0" style="color:rgb(0,153,0);">[ items2<span class="br0" style="color:rgb(0,153,0);">] .<span class="me1" style="color:rgb(102,0,102);">name <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; info <span class="sy0" style="color:rgb(51,153,51);">+= <span class="st0" style="color:rgb(51,102,204);">'<li id="' <span class="sy0" style="color:rgb(51,153,51);">+ items2 <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">'">' <span class="sy0" style="color:rgb(51,153,51);">+ api<span class="br0" style="color:rgb(0,153,0);">[ items2<span class="br0" style="color:rgb(0,153,0);">] .<span class="me1" style="color:rgb(102,0,102);">name <span class="sy0" style="color:rgb(51,153,51);">+ <span class="st0" style="color:rgb(51,102,204);">'</li>' <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} This thingamajiger right here records each item into a log individually--or whatever that console.log function does--and throws some new ID into "info" for each item until there is no more.

Wish I was more savy with this to explain everything else, but I believe the main purpose of this is to be able to grab the data of the items from that, "api," so we can use here on this wiki.