Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Monday, December 17, 2012
LearnStreet Sample Solution to Lesson 9 Exercise 3
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
# your code here
numbers.collect! do |x|
if x % 2 != 0
x
else
nil
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
LearnStreet Python Lesson 4 Exercise 5
#sample solution def colorful_conditions(): color = "blue" if color == "red": return "firs...
Codecademy Learn Phaser: Keyboard Events 10/12
//Sample Solution const gameState = {} function preload() { this.load.image('codey', 'https://s3.amazonaws.com/codecademy-...
Codecademy > Learn Java > Methods: II Sample Solution
class Dog{ int age; public Dog(int dogsAge){ age = dogsAge; } public void bark() { System.out.println("Woof...
Codecademy: Codeyear Making copies
//sample solution //Here is the original card object var card1 = {"suit":"clubs", "rank": 8}; //Create a ...
Codeyear: Creating an array with recursion
//sample solution // Here is the array we will store results in var multiples = []; function multiplesOf(base, i) { // Base case ...
What is the area of an N-sided regular polygon?
A regular polygon has sides of equal length. Type in the length of the side of a sided regular polygon: meters Compute
Codecademy Sample Solution: Codeyear Fonts
/*sample solution to style.css*/ /*code exists prior to this point*/ #logo{ font-family: Georgia; /*added code*/ width: 35%;...
Codecademy Sample Solution: Use 'this' in a Component
// sample solution to app.js import React from 'react'; import ReactDOM from 'react-dom'; class MyName extends React.Co...
LearnStreet Mastermind Game Sample Solution Method 3
function checkAnswerWrongPlace(ans, realanswer){ // This method compares two input strings representing a player's guess ("an...
Codecademy Expression-bodied Definitions 2/6
// Sample Solution using System; namespace AlternateExpressions { class Program { static void Main(string[] args) { ...
No comments:
Post a Comment