Fork and clone this repo and follow the directions below.
For the following quiz, there will be a series of questions or directions followed by answer goes here
. You'll replace answer goes here
with your answer between the triple back ticks ( ``` ). When you're done, submit this updated file as a pull request to this repo.
Please reference this document for more information on how to submit this checkpoint.
Create a variable and store the string "pizza" in it...
var food = "pizza";
For questions 2-5, use the code below to answer questions 2 through 4.
var names = ["Jonas", "Inigo Montoya", "Slim Shady", "Mr. Robot"];
var clown = {
name: "Joker",
evil: true,
minions: ["Bozo", "Harley Quinn", "Grumpy", "Chuckles"],
enemy: {
name: "Batman",
evil: false,
minions: ["Robin", "Alfred"]
}
};
Access the value "Jonas"
out of the names
array...
names[0];
Write a for loop that prints hello NAME
to the console. NAME
should be replaced with a name that appears in the names
array. Each iteration of the loop should print a different name.
for (var i = 0; i < names.length; i++) {
console.log("hello " + names[i]);
}
Access the value "Alfred"
out of the clown
object...
clown.enemy.minions[1];
Set a new property on the object stored in the variable clown. Make it anything you want!
clown.noseColor = "red";
Write a function that takes an array as an argument and returns the array's first value...
var firstValue = function(myArray){
return myArray[0];
}
What is Git, what problem does it solve? What is the difference between Git and Github?
Git is a file management system that stores changes made when editing files between versions. It solves the problem of not knowing exactly what was changed between successive versions of a project and it only tracks the changes to conserve space. Git is a local repository of a project while Github is a web based version that can be accessed from anywhere.
What is the difference between a fork and a clone?
A fork creates a copy of a repository on your own personal Github profile, while a clone copies a repository to your local machine.
How would you link a CSS file entitled hardstyle.css
in an HTML file?
<link rel="stylesheet" type="text/css" href="hardstyle.css">
For Questions 10 & 11 use the code example below...
<body>
<div id="dog-resume">
<ul class="skillz">
<li> - Bone Location</li>
<li> - Remote Sniffing</li>
<li> - Delineating Territory</li>
<li> - Shoe Deconstruction </li>
<li> - Carpet Stain Placement </li>
</ul>
</div>
</body>
Write a CSS selector that will apply styling to an element with an id of dog-resume
...
#dog-resume{
}
Write a CSS selector-rule that will select and apply styling to every <li>
inside of a <ul>
:
ul li {
}