Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!