JSFiddle - React, Tailwind, and code Playground

by Kanatantsin

HTML

<html lang="en">

  <head>
    <title>Phrase-o-matic</title>
    <meta charset="utf-8">

  </head>

  <body></body>

</html>

JavaScript

function makePhrases() {
  var words1 = ["24/7", "multi-tier", "30,000 foot", "B-to-B", "win-win"];
  var words2 = ["empowered", "value-added", "oriented", "focused", "aligned"];
  var words3 = ["process", "solution", "tipping-point", "strategy", "vision"];
  var rand1 = Math.floor(Math.random() * words1.length);
  var rand2 = Math.floor(Math.random() * words2.length);
  var rand3 = Math.floor(Math.random() * words3.length);
  var phrase = words1[rand1] + " " + words2[rand2] + " " + words3[rand3];
  alert(phrase);
}
makePhrases();