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.