How to take input on coding online judge

I used prompt-sync to take input from vs code console. But when I submitted the code to an online judge, it showed Runtime Error. Link of the Code

Hey there,

please elaborate more on what you are currently working on.

When you require an external package, you first need to install it.
Did you run npm install prompt-sync in your project?

I compiled the code successfully on vs code. But when I submitted the code to Google KickStart's ongoing competition, the online judge showed Runtime Error. On the other hand, C++ code was accepted

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.