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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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.




                body {
  margin: 10%;
  background-color: black;
  color: white;
  font-family: Arial;

h1 {
  text-align: center;


                var verb1 = [prompt("Please enter a verb ending ing:"), "running", "jumping"];
var place1 = [prompt("Please enter any place:"), "Timbuktu", "Long Beach"];
var adjective1 = [prompt("Please enter an adjective:"), "stunning", "exciting"];
var noun1 = [prompt("Please enter a plural noun:"), "peanuts", "flies"];
var noun2 = [prompt("Please enter a plural noun:"), "dirt", "laundry"];
var place2 = [prompt("Please enter any place:"), "Catalina", "San Diego"];
var transportation = [prompt("Please enter mode of personal transportation:"), "skateboard", "kayak"];
var time = [prompt("Please enter a time span:"), "2 hours", "3 years"];
var food = [prompt("Please enter a food:"), "watermelon", "carrots"];
var place3 = [prompt("Please enter any place:"), "New York", "Fresno"];
var animal = [prompt("Please enter a animal:"), "wolf", "pig"];
var adjective2 = [prompt("Please enter a adjective:"), "verbose", "spectacular"];
var verb2 = [prompt("Please enter a verb:"), "fish", "fly"];

document.write("<p>My friends and I decided to take a break from " + verb1[Math.floor(Math.random()*verb1.length)] + " and go on a road trip to " + place1[Math.floor(Math.random()*verb1.length)] + ". It will be a " + adjective1[Math.floor(Math.random()*verb1.length)] + " adventure!</p> <p>With our backpacks full of " + noun1[Math.floor(Math.random()*verb1.length)] + " and " + noun2[Math.floor(Math.random()*verb1.length)] + ", we headed to the nearest " + place2[Math.floor(Math.random()*verb1.length)] + " so we could rent a " + transportation[Math.floor(Math.random()*verb1.length)] + ". We drove for " + time[Math.floor(Math.random()*verb1.length)] + ", stopped off for a " + food[Math.floor(Math.random()*verb1.length)] + " break and finally reached " + place3[Math.floor(Math.random()*verb1.length)] + " to get some sleep.</p> <p>The next morning we hiked up a " + animal[Math.floor(Math.random()*verb1.length)] + " trail and met some really " + adjective2[Math.floor(Math.random()*verb1.length)] + " people who taught us how to " + verb2[Math.floor(Math.random()*verb1.length)] + ", we ended up staying for water and then made our way back on the road.</p>");