Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Thursday, January 17, 2013
Codecademy Sample Solution: Create Your Own!
def greeter
yield
end
phrase = Proc.new { puts "Hello there!"}
greeter(&phrase)
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
Codecademy Sample Solution: Codeyear Eliminating Unnecessary HTML
<style> p { margin: 0px; padding-left: 10%; padding-right: 10%; text-align: justify; border-style: dashed;...
How long do undisturbed fingerprints last in a crime scene?
Years
Codecademy: Codeyear Conditionals
//sample solution var gender = "female"; if (gender === "female") { result = true; } else { result = false; ...
#Codeschool Backbone.js Sample Solution to Define Render
var AppointmentView = Backbone.View.extend({ render: function() { var html = '<li>' + this.model.get('title')...
Codecademy > Learn Java > ArrayList: Manipulation Sample Solution
import java.util.ArrayList; public class Temperatures { public static void main(String[] args) { ArrayList<Integer> weeklyTem...
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...
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: Codeyear Now you try
//sample solution function factorial(n) { if(n<0){ console.log("Invalid argument. Negative numbers not allowed."); r...
Codecademy Sample Solution: Forge an Object in the Fires of Mount Ruby
class Message @@messages_sent = 0 def initialize(from, to) @from = from @to = to @@messages_sent += 1 end end my_messag...
No comments:
Post a Comment