document.getElementById with 2 parameters?


#1

Hi everyone!

I am working on the ExpressJS course and I came across a new concept that I am unable to locate an explanation anywhere else.

Exercise 6 - Getting a Single Express:
They are using document.getElementById with 2 parameters - my understanding is that it can only handle 1…how is it getting the id in the first param and then matching with the array that is passed through in the second param?

Thank you in advance for your help!

Costa


#2

Can you post a code sample, please? (Include a link to the exercise.)