[Solved] How do I use the second parameter in the JavaScript ‘prompt’ function? [closed]


The second param is for a value argument:

value is a string containing the default value displayed in the text
input field. It is an optional parameter. Note that in Internet
Explorer 7 and 8, if you do not provide this parameter, the string
“undefined” is the default value.

https://developer.mozilla.org/en-US/docs/DOM/window.prompt

1

solved How do I use the second parameter in the JavaScript ‘prompt’ function? [closed]