Giter Site home page Giter Site logo

cc9-precourse.recursion's Introduction

Precourse: Recursion

A recursive function is one that calls itself ๐Ÿ“ž. In this assignment you will use recursion to solve three problems.

Objectives

In this assignment you will use JavaScript and recursion to:

  • create possible hands ๐Ÿ– for Rock, Paper, Scissors.
  • traverse the DOM and get elements by their class name.
  • turn JavaScript values into JSON strings.

Instructions

  • Fork ๐Ÿด and clone this repository following the Code Chrysalis git flow instructions.
  • Open the index.html file in your browser. You will see a list of failing tests.
  • Commit your work often.
  • When you have completed all the tasks, follow the Code Chrysalis git flow instructions to create a pull request.

Basic Requirements

Write code in the src/rockPaperScissors.js, src/getElementByClassName.js, and src/stringifyJSON.js files to make the tests pass.

  • rockPaperScissors: ๐Ÿค˜ ๐Ÿ“„ โœ‚๏ธ Generate permutations of the game Rock, Paper, Scissors.
  • getElementByClassName: A practical instance of recursion. The DOM is a ๐ŸŒณ tree structure and recursion is an efficient way to traverse it.
    • See links provided in Resources for some help
  • stringifyJSON: Also a very practical use of recursion. We will be recreating the JSON.stringify method, which converts a JavaScript value to a JSON string.

Resources

cc9-precourse.recursion's People

Contributors

mark-drastrup avatar mia-the-coding-cat avatar

Watchers

 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.