Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Saturday, November 17, 2012
Codecademy: "Time to Blast Off!"
//sample solution
var i=10;
while(i>=0){
if(i === 0){
console.log("Blast Off!");
} else {
console.log(i);
}
i--;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
This is an example of
scrolling text
using Javascript.
Popular Posts
Make a Website: HTML Wrap with a div
<!-- Sample solution to index.html --> <!DOCTYPE html> <html> <body> <div class="nav"> ...
Codecademy: "Function and Control Flow"
//sample solution def isEven(x): if(x % 2 == 0): return "yep" else: return "nope"
Codecademy Sample Solution: Conditional Assignment
favorite_animal ||= "dog" favorite_animal ||= "cat"
Codecademy: "Unless"
#sample solution hungry = false unless hungry puts "I'm writing Ruby programs!" else puts "Time to eat!...
Codecademy: Codeyear Nesting conditional statements
//sample solution var yourName = "Pam"; var gender = "female"; var result; //Line 10 starts an if statement //Ne...
Codeschool Sample Solution Changing Text
$("span").text("$100")
Codecademy Sample Solution: AJAX
var req = new XMLHttpRequest(); req.onreadystatechange = function() { if (req.readyState == 4 && req.status == 200) { console...
Codecademy: Structure the Webpage
<!--sample solution--> <html> <head> <title>Week 13 Project</title> </head> ...
Codeschool Sample Solution Selecting Direct Children
$("#tours > li")
Codecademy Sample Solution: Using Endwhile
<!DOCTYPE html> <html> <head> <title>A loop of your own</title> <link type='text/css...
No comments:
Post a Comment