Coder Social home page Coder Social logo

crizy182 / challenge-javascript-10 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from platzimaster/challenge-javascript-10

0.0 1.0 0.0 56 KB

Map and reduce in JS

Home Page: https://platzi.com/clases/1819-platzi-master/26485-sesion-tecnica-4-mapreduce-para-analizar-grandes-d/

JavaScript 100.00%

challenge-javascript-10's Introduction

class-03 - JavaScript Reduce

Los Arrays en Javascript soportan la función reduce, esta puede evaluar cada elemento y reducirlo a un solo valor.

RETO 1

Usando la función reduce debes buscar el número más pequeño y el más grande.

Pasos

  1. Editar el archivo demo6.js
  2. Usando reduce encontrar el numero más pequeño.
  3. Usando reduce encontrar el numero más grande.
  4. Obtener el promedio de un array.
  5. Plus: Crear un array de 1000 números fake generados por la librería faker y probar las funciones.

Ejemplo

La solución debería funcionar algo similar:

getMaxNumber([2,4,5,6, ...]) // should === 6
getMinNumber([2,4,5,6, ...]) // should === 2
getAverage([10, 10, 10]) // should === 10

Instalación

npm install

test

npm run test

Enviar solución de reto

Debes hacer un "Fork" de este proyecto, revolver los problemas y crear un Pull Request hacia este repositorio.

Licencia

challenge-javascript-08 se lanza bajo la licencia MIT.

challenge-javascript-10's People

Contributors

crizy182 avatar gndx avatar hyfi06 avatar nicobytes 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.