/**
* 2a. In which priority order are these CSS rules applied?
*
* 2b. What is the final color of "KLOUDLESS ROCKS!"?
*
* <body>
* <div id="content">
* <div class="alternative">
* <p id="baobab" class="tree">KLOUDLESS ROCKS!</p>
* </div>
* </div>
* </body>
*
**/
p { color: red; }
body #content .alternative p { color: orange; }
.tree { color: red; }
#baobab { color: gray; }
div p { color: purple; }
p { color: blue; }
div p.tree { color: black; }
JavaScript
/**
* 1. What is the benefit of using em over pixels?
*
*
*
*
*
**/
/**
* 2. See CSS =>
**/
/**
* 3. How would you select the <li> element with the word "Second" in it?
**/
/**
* 4. Code an event handler that changes "Google" to "Google Drive" when the
* Kloudless link is clicked. Try in jQuery and then JavaScript.
**/
/**
* 5. How would you test your JS code’s performance or profile it?
*
*
*
*
*
**/
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.