JSFiddle - React, Tailwind, and code Playground

by darcyclarke

JavaScript

var pairs = [],
    articles = "Speed Introduction; Executive Insight; The Light Fantastic; The Google Gospel of Speed; Broadband or Bust; Driving Force; Not So Fast; The Knowledge; First In, First Out; Start-Up Speed; The Slow Manifesto; The Hi-Tech Tortoise; Branding in Mind; Speed of Dreams; HTML5… 4… 3… 2… 1… Go!; Recoding the Classroom; The Insider; Supersonic School; The Joy of Slow; Moving at the Speed of the Slice; Speed Deal".split("; "),
    links = "speed-introduction-margo-georgiadis; executive-insight-marty-st-george; the-light-fantastic-CERN; the-google-gospel-of-speed-urs-hoelzle; broadband-or-bust-jeremy-hunt; driving-force-martin-whitmarsh; not-so-fast-jeff-jarvis; the-knowledge-frank-stephenson; first-in-first-out-early-adopters; start-up-speed-kristen-gil; the-slow-manifesto; the-hi-tech-tortoise; branding-in-mind; speed-of-dreams-astro-teller; html-5-overview; recoding-the-classroom-education-feature; the-insider-paul-gunning; supersonic-school-richard-noble; the-joy-of-slow-will-self; speed-of-the-slice-dominos; speed-deal-coupang-bom-kim".split("; "),
    field = "Executive Insight: Marty St George; Start-up Speed; Executive Insight: Rolf-Dieter Heuer; Driving Force; The Google Gospel of Speed; The Knowledge: Frank Stephenson; Driving Force; Supersonic School".split("; "),
    output = "";

for(var i=0;i<articles.length;i++){
    pairs[articles[i]] = links[i];  
}

for(var i=0;i<field.length;i++){
    output += pairs[field[i]] + ",";   
}

console.log(output);