Code Monkey home page Code Monkey logo

udemy-js-coding-challenge-8's Introduction

Udemy-JS-Coding-Challenge-8

....... Below is the coding challenge that I am to undertake for the Udemy JavaScript 2020 course. I have started work on this on 13th June 2020. .......

Suppose that you're working in a small town administration, and you're in charge of two town elements:

  1. Parks
  2. Streets

It's a very small town, so right now there are only 3 parks and 4 streets. All parks and streets have a name and a build year.

At an end-of-year meeting, your boss wants a final report with the following:

  1. Tree density of each park in the town (forumla: number of trees/park area)
  2. Average age of each town's park (forumla: sum of all ages/number of parks)
  3. The name of the park that has more than 1000 trees
  4. Total and average length of the town's streets
  5. Size classification of all streets: tiny/small/normal/big/huge. If the size is unknown, the default is normal

All the report data should be printed to the console.

HINT: Use some of the ES6 features: classes, subclasses, template strings, default parameters, maps, arrow functions, destructuring, etc.

("Green Park", 1987, 0.2, 215), ("National Park", 1894, 2.9, 3541), ("Oak Park", 1953, 0.4, 949),

("Ocean Avenue", 1999, 1.1, 4), ("Evergreen Street", 2008, 2.7, 2), ("4th Street", 2015, 0.8), ("Sunset Boulevard", 1982, 2.5, 5)

udemy-js-coding-challenge-8's People

Contributors

jillglass avatar

Watchers

James Cloos avatar  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.