Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

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


                <h1><a href="">Async-Await In Javascript ES7 | Geekstrick : <span >Read The Full Tutorial</span></a><h1>


a {
a span:hover{



                console.log("Person 1: Shows the ticket");
    console.log("Person 2: Shows the ticket");  
    const preMovie = async () =>{  // async function 
        const promiseFriendBringTics = new Promise((resolve, reject) => { 
            setTimeout(() => {  // function
                resolve('ticket'); // means got the ticket
            }, 300) // execuate after 3 second
        const getPopcorn = new Promise((resolve,reject) =>resolve(`popcorn`)); //Create new Promise @getPopcorn
        const getButterOnPopcorn = new Promise((resolve,reject) =>resolve(`Butter On PopCorn`)); //Create new Promise @getButterOnPopcorn

        let ticket = await promiseFriendBringTics; // waits to execuate @promiseFriendBringTics
        console.log(`Friend: Here is the ${ticket}`);    
        console.log("we should go in !");    
        console.log("friend: No am hungry !"); 

        let popcorn = await getPopcorn;     // waits to execuate @ticket
        console.log(`I Have Get Some ${popcorn}`);  
        console.log("Now! we should go in !");    
        console.log("friend: No i need buttor on my popcorn !");
        let butter = await getButterOnPopcorn; // waits to execuate @popcorn
        console.log(`I Have Get Some ${butter}`);   
        console.log("Now! we should go in !"); 

        return ticket; 
    preMovie().then((ticket) => console.log("Gets : " + ticket));
    console.log("Person 4: Shows the ticket");
    console.log("Other Person's .... go's on");