Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Tuesday, January 22, 2013
Codecademy Sample Solution: Private Affairs
class Application
attr_accessor :status
def initialize; end
# Add your method here!
public
def print_status
puts "All systems go!"
end
private
def password
return 12345
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
Endpoints
# Codecademy sample solution # What are the four commonly used HTTP methods ("verbs")? # A: FIND, SEND, UPDATE, REMOVE # B: ...
Codeschool Sample Solution Selecting Direct Children
$("#tours > li")
Codecademy: Structure the Webpage
<!--sample solution--> <html> <head> <title>Week 13 Project</title> </head> ...
Make a Website: HTML Wrap with a div
<!-- Sample solution to index.html --> <!DOCTYPE html> <html> <body> <div class="nav"> ...
Codecademy: "Unless"
#sample solution hungry = false unless hungry puts "I'm writing Ruby programs!" else puts "Time to eat!...
Codecademy: "Function and Control Flow"
//sample solution def isEven(x): if(x % 2 == 0): return "yep" else: return "nope"
What hotkeys can you use in a Python shell to repeat the previous command you typed?
Answer: Alt - p p stands for previous. If you keep pressing Alt - p, you will continue cycling back through commands you typed before. I...
Codecademy Sample Solution: Conditional Assignment
favorite_animal ||= "dog" favorite_animal ||= "cat"
LearnStreet Sample Solution to Lesson 6 Exercise 11
# your code here def check_palindrome(str) rev = str.reverse rev.eql?(str) end check_palindrome("civic")
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