javascript - Can a prompt take two arguments at the same time? -
i know if prompt can take 2 arguments simultaneously, , store them in distinct variables.
example:
var = prompt(variable storing number , variable storing string) console.log(variable storing string);
is legal or pure fantasy? let me know if needs more explanation.
the prompt function takes 2 arguments: text display , default text of input, not work.
i'd suggest either required data through 2 separate prompts or ask user provide both in single prompt , parse returned string afterwards separate integer , string.
Comments
Post a Comment