it would help to search on mdn about browser apis used there
yes, the point is that I want a comparison to understand that my partial output is correct. The only way to understand if my output is correct is to compare the result with the original code. (да, дело в том, что я хочу, чтобы сравнение поняло, что мой частичный вывод верен. Единственный способ понять, является ли мой вывод правильным, - сравнить результат с исходным кодом.)