Skip to content

Instantly share code, notes, and snippets.

@lk321
Created April 9, 2019 22:42
Show Gist options
  • Select an option

  • Save lk321/e95c1138265d045dea7fbcc879ef5261 to your computer and use it in GitHub Desktop.

Select an option

Save lk321/e95c1138265d045dea7fbcc879ef5261 to your computer and use it in GitHub Desktop.

Revisions

  1. lk321 created this gist Apr 9, 2019.
    21 changes: 21 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    Realizar proyecto en NodeJS donde muestres si es numero par o impar

    Detalle:
    El numero se lo mandaras a través de la URL (Sera una api en NodeJS).
    donde tendrás que hacer la operación para saber si es numero par o impar mostrando el siguiente mensaje:
    - El numero "X" es un numero [par | impar]

    Ejemplo de URL:
    http://localhost:8080/ejemplo?numero=10

    Herramientas:
    - NodeJS
    - ExpressJS (https://expressjs.com/es/starter/hello-world.html)

    Preguntas frecuentes:
    - ¿Como obtener parametro de la url en nodejs?
    https://stackoverflow.com/questions/6912584/how-to-get-get-query-string-variables-in-express-js-on-node-js
    - ¿Como saber si es par o impar?
    https://stackoverflow.com/questions/6211613/testing-whether-a-value-is-odd-or-even

    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :