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 ( ``` ) Then submit this updated file as a pull request to this repo.
Create a variable and store the string "pizza" in it
var = "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 such that you say hello(using console.log
) to each name in the names
array
for (var=0; i<names.length; i++){
console.log("Hello");
};
Access the value "Alfred"
out of the clown
object
clown[1][1];
//had to use my notes//
Set a new property on the object stored in the variable clown. Make it anything you want!
clown["Tim Curry"] = "It"
//had to use my notes
Write a function that takes an array as an argument and returns the array's first value
var myArray [1,2,3,4]
var firstValue function(){
return myArray[0];
}
//had to use my notes
What is Git, what problem does it solve? What is the difference between git
and github?
github is a website used to store and share gits. git is a way to track changes in text files. git makes it easier to track changes between developers, as you can only push what you've actually made changes on.
//had to use my notes
What is the difference between a fork and a clone?
a fork is your own copy of someone's git that you pull off of github, but a clone is what you download onto your machine to work with. so --> fork first, then clone.
How would you link a css file entitled, hardstyle.css
in an html file?
<link rel="stylesheet" type="text/css" href="hardstyle.css">
<!-- ...html stuff above -->
<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>
<!-- html stuff below... -->
Write a CSS selector-rule that will select and 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>
:
li {
};