Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="container">
  <h1>Generate A Random Silly Hyperbole</h1>
  <div id="random-name"></div>
  <button class="btn btn-primary" id="generate">Generate Another</button>
  <h6>Thanks to <a href=""> James</a> for the starter JS</h6>
  <script src="script2.js"></script>
  <link rel="stylesheet" href="style.css" />



                #random-name {
  margin-left: 15%;
  padding: 1rem;
  font-family: Arial;
  font-size: 21px;
  font-weight: 700;
  color: blue;

h1 {
  font-family: "Garamond", sans-serif;
  padding-left: 15% ;
  padding-top: 15px;

p {
  font-family: "Arial",

h6 {
  padding-left: 1rem;
  padding-top: 3rem;

#generate {
  min-height: 35px;
  color: white;
  font-size: 14px;
  font-weight: 900;
  margin: 5rem;
  padding: 12px;
  background: blue;
  width: 25%;

.btn-primary {
  width: 150px;
  padding: 15px;


                const whoIs = [
  "It was",
  "She was",
  "He was",
  "I was",

const tense = [

const connector = [

const adjective = [
  "more weird",
  "more hairy",
  "more bull-headed",

const noun = [
  "a french fry",
  "a hot dog",
  "sour watermelon",
  "sticky cotton candy",
  "crooked toes",
  "a three-legged dog",
  "a rollie pollie",
  "a gypsie",
  "a badger",
  "a sweet pea",
  "a chicken nugget",
  "a frog hair",
  "a crunchy pickle",
  "a buttered biscuit",
  "a herd of turtles",
  "a southbound goat",
  "an ice cream cone",
  "a long-tailed cat",
  "a polar bear"

/*action or location*/
const actionLocation = [
  "on a hot day at the fair",
  "in Alaska",
  "at the farm",
  "in the woods",
  "a mile away",
  "in the hills",
  "on the freeway",
  "at the barn",
  "in the neighborhood",
  "in July",
  "riding a dinosaur",
  "split 4 ways",
  "doing somersaults",
  "running a long mile",
  "in a pepper patch",
  "trying to saddle a junebug",
  "in a room full of rockers"

const getRandomNumber = max => Math.floor(Math.random() * max);

const getRandomHyperbole = () =>
  `${whoIs[getRandomNumber(whoIs.length)]} ${
      adjective[getRandomNumber(adjective.length)]} ${
      connector[getRandomNumber(connector.length)]} ${
      noun[getRandomNumber(noun.length)]} ${

const setRandomHyperbole = () => {
  document.getElementById("random-name").innerText = getRandomHyperbole();

document.getElementById("generate").addEventListener("click", setRandomHyperbole);