Skip to content

Instantly share code, notes, and snippets.

@lk321
Created April 9, 2019 22:42
Show Gist options
  • Save lk321/e95c1138265d045dea7fbcc879ef5261 to your computer and use it in GitHub Desktop.
Save lk321/e95c1138265d045dea7fbcc879ef5261 to your computer and use it in GitHub Desktop.
Proyecto01
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
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment