Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

224
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda