Write the code to display image element with a source set to pup.png.
<img src="pup.png">
This symbol is used to "call" jQuery.
The dollar symbol ($)
This is the keyword to declare a variable.
var
The name of this function:
function addToJeopardyScore() { }
addToJeopardyScore
When someone says "Front-End Web Development", they are often referring to these three languages.
HTML, CSS, and Javascript
This is one major difference between img and input tags versus p and div tags.
img and input are self-closing.
jQuery is a _______ of Javascript.
What is a library
This is the vocabulary used when you add two strings together to combine them.
concatenate
This is how you would access the 2nd element of an array with the name of arr.
arr[1];
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;
}
#container, .item and h1 are all examples of this
selectors
Write the code to change all elements of class "red" to have background color of red.
$(".red").css("background-color", "red");
The arguments used when calling this function:
add(5, 7);
5, 7
What is the data type of: 132?
Number
Write a conditional statement that alerts "Success!" if someones writes "password" in an input box.
var userInput = $("input").val();
if(userInput==="password"){
alert("Success!");
}
Write it! Use CSS to change this element's text to blue.
<p id="sentence">The quick brown fox</p>
#sentence{
color:blue;
}
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.
Write the code to call the function below with 12 and 22 as arguments.
function add(x, y);
add(12, 22);
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
}
This founder of Amazon is the wealthiest person in contemporary history.
Who is Jeff Bezos?
Write it! Give the following div a solid, red, 5-pixel border
<div id="danger">Caution</div>
#danger{
border:5px solid red;
}
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();
});
What will this function return, assuming that it adds to the arguments?
add(add(12, 4), 5);
21
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)
}
This South African born Canadian-American is the founder of SpaceX, Tesla, and Neuralink.
Who is Elon Musk?