The Weakest <a>


WARM UP


What does console.log output?
var zero = 0;
console.log(zero == false);	
true

Question #1


What is not an HTML5 element?
<section>
<header>
<blink>
<main>

Question #2


What's the font size of div.child in pixels?
<div class="parent" style="font-size:20px;">
    <div class="child" style="font-size: 0.7em" >hello</div>
</div>
14px

Question #3


What's the name of the most popular vector graphics format for the Web?
SVG

Question #4


What does console.log output?
console.log(0 === -0);
true

Question #5


What does console.log output?
console.log({}.toString())
"[object Object]"

Question #6


What HTML5 element is used for navigation link sections?
<nav>

Question #7


Rewrite the following code using the Selectors API
var bigLinks = $('a.big');
document.querySelectorAll('a.big')

Question #8


How do you match just the 4th <li> element with a CSS selector?
<ul>
    <li>Robb</li>
    <li>Sansa</li>
    <li>Arya</li>
    <li>Brandon</li>
    <li>Rickon</li>
</ul>
li:nth-child(4)

Question #9


What does console.log output?
var result = "ten" * 2;
console.log(result == NaN);
false

Question #10


What does console.log output?
var globalVar = "global";
function test1() {
	console.log(globalVar);
	return;

	var globalVar;
}
test1();
undefined

Question #11


How do you match just the 4th <p> element with a CSS selector?
<div>
    <p>Robb</p>
    <span>Theon</span>
    <p>Sansa</p>
    <p>Arya</p>
    <p>Brandon</p>
    <p>Rickon</p>
</div>
p:nth-of-type(4)

Question #12


What does console.log output?
typeof NaN
"number"

Question #13


How can you fix this code with one extra character so console.log outputs "2.00"?
console.log(2.toFixed(2))
add a space or a dot after 2

Question #14


What does console.log output?
console.log(parseInt(1/0, 19))
18

Question #15


How many questions are in this quiz?
16

THE END