I am a Javascript beginner and sorry if my question is odd. I am asking about a situation where the following is done: https://stackoverflow.com/a/69841002/14819077