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.


                <head><link href=' Shade' rel='stylesheet'></head>
<div class="spacer"></div>
  <div class="display text-center" id="field">Albany is the capital of New York</div>
<p class="finish" id="finish"></p>
  <div class="buttons">
    <p class="btn btn-success" id="btn1">Yes</p>
      <p class="btn btn-success" id="btn2">No</p>
<p class="btn btn-primary" id="again">Play again?</p>




                body {
background-image: url("");
background-size: cover;
background-repeat: no-repeat;
background-position: fixed;

h1 {
text-align: center;
font-family: Bungee Shade}

.spacer {
padding: 50px;}

#field {
border: 2px solid black;
background-color: white;
opacity: .6;
margin: 0 auto;
width: 40%;
height: auto;
margin-bottom: 10px;

.buttons {
text-align: center;}

.finish {
font-size: 50px;
text-align: center;

#finish {
color: green;}




var truthy = ["Nikola Tesla invented Tesla turbine", "There are seven wonders of the world", "test1", "test2", "test3"

var falsy = ["Los Angeles is the capital of USA", "Earth is flat", "Water is blue"]

var counterTrue = true;
var counterFalse = true;
var counter1 = -1;
var counter2 = -1;

if (counter1 <= 2) {


} else if(counter1 > 2) {