Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Saturday, January 19, 2013
Codecademy Sample Solution: Inheriting a Fortune
class Message
@@messages_sent = 0
def initialize(from, to)
@from = from
@to = to
@@messages_sent += 1
end
end
class Email < Message
def initialize(subject)
@subject = subject
end
end
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
Codeyear: Deal It Out
//sample solution // Card Constructor function Card(num1,num2) { //properties var suit = num1; var number = num2; //methods ...
(no title)
Question: The total power dissipation in an RL series circuit is due to which component? Answer: The total power dissipation is due to ...
Codeschool Cliffs of Value Modulus Sample Solution
Find an expression using two values and the modulus operator that results as 4 Answer: 32%7
Codecademy Sample Solution: In Case of Many Options
puts "What's your favorite language?" language = gets.chomp case language when "Ruby" then puts "Ruby is ...
Codecademy Sample Solution: Authentication and API Keys
// What's an API key? // A: An alphanumeric string used to identify you to an API // B: An OAuth token // C: An All-Purpose Interne...
Codecademy - Sun, Earth, and Code: Spin please
// Sample solution to style.css html, body { /* The universe takes up all available space */ width: 100%; height: 100%; ...
Codecademy: Codeyear My first function
//sample solution var myFirstFunction = function(){ console.log("yourName"); }; myFirstFunction();
Codeschool Sample Solution Using find()
$("#vacations").find(".america")
Codeschool Sample Solution First Pseudo Selector
$("#tours :first")
Codecademy - Animate Your Name: Booleans
//Sample solution to main.js var someString = "I'm coding like a champ"; document.write( someString ); document.write( ...
No comments:
Post a Comment