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.


<meta name="viewport" cotent="width=device-width ,initial-scale = 1.0">
<title>Quote Generator</title> 
<body bgcolor="black">
<script type="text/javascript">
var quotes;
function generateQuote(){
quotes =[
"weak people revenge strong people forgive intelligent people ignore - Albert einsten",
"I learned much more from defeat than i ever learned from wining- Fola tade",
"Impossible is just an opinion - Paulo Coelho",
"The scariest moment is always just before you start after that things can only get better- Stephen King",
"Don't be afraid to give up the good to go for the great- John D Rockefeller",
"The only reason for time is so that everything doesn't happen at once - Albert Einsten",
"What you allow is what will continue - Fikayo Jetawo",
"What we fear of doing most is usually what we need most to do- Raph Waldo Emerson",
"If you want to live a happy life, tie it to a goal not to people or things- Albert Einstein",
"Every programmer is an author - Sercan Leylek",
"Any fool can write codes that a  computer can understand.Good programmers write codes that humans can understand - Martin Fowler",
"Even if we don't have the power to choose where we come from, we can still choose where we go from there. —Stephen Chbosky",
"It is impossible to live without failing at something, unless you live so cautiously that you might as well not have lived at all - in which case, you fail by default. —J.K. Rowling",
"Life is never fair, and perhaps it is a good thing for most of us that it is not. —Oscar Wilde",
"Anyone who has never made a mistake has never tried anything new. —Albert Einstein",
"Don't let your happiness depend on something you may lose. —C.S. Lewis",
"Monsters are real, ghosts are real, too. They live inside us, and sometimes they win. —Stephen King",
"Everything is hard before it is easy. —Johann Wolfgang von Goethe",
"It hurt because it mattered. —John Green",
"We rise by lifting others. — Robert Ingersoll"
var randomQuote = quotes[Math.floor(Math.random() * (quotes.length -1))];
<button onClick="generateQuote();">Generate Quote</button>