good question, no idea why both are here.
and they are sometime a bit different in what they are supposed to do (for example some map scripts)
for those I edited it's the .js that was loaded.
for the difference itself, see
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
www.geeksforgeeks.org
and if you want to test things in scripts, there is no console, but I think
write into the Scripting.log file in "\AppData\Local\Firaxis Games\Sid Meier's Civilization VII\Logs"