HTML and CSS
jQuery
Javascript 1
Javascript 2
Feeling Lucky
100

Write the code to display image element with a source set to pup.png.

<img src="pup.png">

100

This symbol is used to "call" jQuery.

The dollar symbol ($)

100

This is the keyword to declare a variable.

var

100

The name of this function:

function addToJeopardyScore() { }

addToJeopardyScore

100

When someone says "Front-End Web Development", they are often referring to these three languages.

HTML, CSS, and Javascript

200

This is one major difference between img and input tags versus p and div tags.

img and input are self-closing.

200

jQuery is a _______ of Javascript.

What is a library

200

This is the vocabulary used when you add two strings together to combine them.

concatenate

200

This is how you would access the 2nd element of an array with the name of arr.

arr[1];

200

Write the CSS that would apply flexbox to the following HTML

<div class="outside">

    <div class="inside"> about</div>

    <div class="inside"> for schools</div>

    <div class="inside"> for companies</div>

    <div class="inside"> volunteer</div>

    <div class="inside"> donate</div>

<div>

.outside {

    display: flex;

}

300

#container, .item and h1 are all examples of this

selectors

300

Write the code to change all elements of class "red" to have background color of red.

$(".red").css("background-color", "red");

300

The arguments used when calling this function:

add(5, 7);

5, 7

300

What is the data type of: 132?

Number

300

Write a conditional statement that alerts "Success!" if someones writes "password" in an input box.

var userInput = $("input").val();

if(userInput==="password"){

     alert("Success!");

}

400

Write it! Use CSS to change this element's text to blue.

<p id="sentence">The quick brown fox</p>

#sentence{

     color:blue;

}

400

Based on the code: 

$("#run").click(function(){

     $("#emoji").hide();

});

What will happen when the any element with the id "#run" is clicked. (Be Specific)

The elements with the id of emoji will be hidden.

400

Write the code to call the function below with 12 and 22 as arguments.

function add(x, y);

add(12, 22);

400

Write it! Create a function named average with the parameters of x and y. Have that function return the average of those two parameters.

function average(x,y){

     var avg=(x+y)/2

     return avg

}

400

This founder of Amazon is the wealthiest person in contemporary history.

Who is Jeff Bezos?

500

Write it! Give the following div a solid, red, 5-pixel border 

<div id="danger">Caution</div>

#danger{

 border:5px solid red;   

}

500

Write it! Write the code that would retrieve the value of something typed in an input box with the id of username when a button with an id of "submit" is clicked.

$("#submit").click(function(){

     $("#username").val();

});

500

What will this function return, assuming that it adds to the arguments?

add(add(12, 4), 5);

21

500

Write it! Write a forLoop that counts up from 0 to 50 by 1. The numbers must be printed to the console.

for(var i=0; i<51; i=i+1){

     console.log(i)

}

500

This South African born Canadian-American is the founder of SpaceX, Tesla, and Neuralink.

Who is Elon Musk?