Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

223
Vistas
Unchangable variables v. const variables

I can access a code from the server that states the student name and it is "l18", variable apparently. Like when you're sending the grades their name variable is l18.

I need to define a link for the students (which is not provided by default in the server but we have a JavaScript playground to deal with the server). The number is rather big and we have more than 800 students.

Let's make a fictional list and use it:

const StudentCode = {
  [Jack]: [32658495],
  [Rose]: [35621548],
  [Lita]: [63259547],
  [Seth]: [27956431],
  [Cathy]:[75821456],
};

Their code goes to the end of this url: https://www.school.com/members?= and the question is how will you be able to generate for example https://www.school.com/members?=75821456 for Cathy, as we defined it in const StudentCode?

May be these information would be necessary as it is a repetition: We have stated new variables in const block so l18, whatever it contains as student's name, matches one of const StudentCode variables. The result of this matching would be the thing that adds to the first URL above to be compelted like the second one.

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda