Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Why does it say my javascript prompt() has to few paramiters?

+2 votes
asked Jan 1 by BenjaminR339 (140 points)
When I was building a basic input output program but when I clicked run and it said my javascript prompt() has to few paramiters

1 Answer

0 votes
answered Jan 2 by Peter Minarik (69,270 points)

Probably various compilers use various syntaxes and the compiler you used does not take 0 parameters.

Try providing the message to be displayed to the user.

For reference, check the syntax here.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.