GithubHelp home page GithubHelp logo

js-frontend-junior's Introduction

Metodos y funciones de arreglos en JS:

arreglo.push(x) añade x a la ultima posición
arreglo.inludes(x) devuelve true si x existe
arreglo.indexOf(x) devuelve la posición de x (en su defecto -1)
arreglo.lastIndexOf(x) lo mismo pero recorriendo del ultimo al primero
arreglo.pop() elimina el último elemento y lo retorna
arreglo.shift() elimina el primer elemento y lo retorna
arreglo
arreglo

Enunciado desafio

Tenemos una seccion de N alumnos, los nombres de los alumnos deben guardarse en un arreglo. Ademas las notas deben guardarse en un arrglo para cada conjunto de notas. Vamos a suponer que nuestra seccion tiene 3 evaluaciones.
  1. solicitar al usuario el numero de alumnos a

  2. solicitar la cedula del alumno, nombre, nota1, nota2, nota3

  3. Validar que la cedula no ha sido registrada, en caso contrario indicar que ya estaba registrada y volver a preguntar (validación)

  4. Asegurarse de que al solicitar los datos se esté ingresando los datos referidos del alumno.

js-frontend-junior's People

Contributors

ch19 avatar wanderlust51 avatar

Stargazers

 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.