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?

+3 votes
asked Jan 1, 2023 by BenjaminR339 (150 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

+1 vote
answered Jan 2, 2023 by Peter Minarik (86,130 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.
...