JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
JavaScript
var greetings = [
'Hello',
'Bonjour',
'Ola',
],
names = {
'One': 'Bill',
'Two': 'John',
'Three': 'Paul',
},
order = [
'One',
'Two',
'Three'
],
items = [];
for( var i = 0, len = order.length; i < len; i++ ) {
items.push( greetings[i] + ' ' + names[ order[i] ] );
}
document.body.innerHTML = ( "<ul><li>" + items.join("</li><li>") + "</li></ul>" );