Uncaught exception: ReferenceError: console is not defined

Thanks for your reply. You advise me to start mongosh. I have installed MongoDB Server 4.4. To start mongosh , should I have to configure it manually ?
To start manually means - I have to write codes in YAML format in a text editor like notepad and access it from MongoDB Sever in command prompt. Please clarify.