Usually we access response from user as
or something similar. But if the form contains multiple input fields like LastName111, LastName112, LastName113 how to access individual req.body.LastName111 if all we have is a variable with recordID = 111?
The answer is so simple and so fundamental to understanding JS that I took a few minutes to write it down:
req.body["LastName" + recordID]
In the first example we used DOT notation and here we are using BRACKET notation.