JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
<body>
<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>
<hr>
</body>
/* please minimize this section */
body{
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://neogeoweb.ca";
//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
//document.write(var.link(url));
Also see: Tab Triggers