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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

  <h3>Welcome to Quiz #1!</h3>
Relax and approach the questions carefully and logically, you'll do fine :) everything here you've already seen in uDemy.<br>
  <b>1] All # questions are separated by 10 blank lines of code in the JS section to the right.<br>2] There are 57 lines total<br>3] any code that needs to be uncommented will be indented</b>

              /* please minimize this section */
font-family: 'Chakra Petch', sans-serif;

              document.write('<hr>Question 1:<br>'); //ignore this line
// Question 1

// Use the console (press tab on bottom left of the CodePen screen) to find and fix simple errors of syntax in the following lines of code.

    // alert(Where are the stones?);

    // docunent.write("Find who you have to, the President, I don't care. Just bring me the stones. You have one hour.');

document.write('<hr>Question 2:<br>'); //ignore this line        
// Question 2
//In  this question you will ask the user for input, save that input as a variable, and output it to the html page below.

//2.1: Modify the command below to store the response as a variable with the name of your choice.

    //prompt("What is your favourite movie?")

//2.2: output the variable that stores the answer from the prompt above using document.write. The html page should display "My favourite movie is: " then the answer from 2.1. 
//[hint: check question 1 for the code to write to the html document]

document.write('<hr>Question 3:<br>');  //ignore this line     
// Question 3

// 3.1: first task is to check the following two variables and ensure that they have the right variable names and string values

    // var var = "Here is our class website";
    // var url = "htp://";

//3.2: second task is to output a link to the html section below using the two variables you have just checked in 3.1. keep in mind that you may have to update the code below if you made any changes to the variables in section 3.1

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.