Giter Site home page Giter Site logo

kindergartengarden.js-web-0615-public's Introduction

Kindergarten Garden

The Garten Garden

Meet your new class!

Alice, Bob, Charlie, David, Eve, Fred, Ginny, Harriet, Ileana, Joseph, Kincaid, and Larry.

Here at the Flatiron School, we're starting a garden with our kindergarten class. To track which patch belongs to which student, we're writing an app.

We're supporting 4 kinds of crops: Grass, Violets, Radishes, and Clover. In our app, we'll reference them as G, V, R, and C respectively.

We'll be assigning a column of our garden to each student in alphabetical order. The string 'VVCGGV\nVVRCCR' can be interpreted as:

Alice Bob Charlie
Violets, Violets Clover, Grass Grass, Violets
Violets, Violets Radishes, Clover Clover, Radishes

Your Garden constructor should be able to do the following:

  • accept two arguments,
    • the first is the string of crops
    • the second is the list of students
  • it should create a property with each student's name by downcasing their name
  • that student name property stores an array of their assigned crops

ex.

var students = ['Alice', 'Bob', 'Charlie'];
var garden = new Garden('VVCGGV\nVVRCCR', students)

garden.bob
// -> ['clover', 'grass', 'radishes', 'clover']

Tests

To run the specs follow these commands:

# first install the new gem to run the tests
gem sources -a http://flatiron:[email protected]
gem install learn-co

# to run in the command line run
learn

#to run in the browser
learn -b

When you finish passing a test, remove the x from xit to convert it to a runnable test.

kindergartengarden.js-web-0615-public's People

Contributors

arpradhan avatar tsiege avatar fs-lms-test-bot avatar irmiller22 avatar deniznida avatar kthffmn avatar octosteve avatar fislabstest avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.