Hi! My problem is that when you prompt a number and add it to another prompt is uses the "+" operator to join the lines. I want it to add the numbers together. How can I do this?
alert(prompt('add a number') + prompt('add another number'));
Thanks in advance, TheCoder
prompt()function always returns a string, so you have to explicitly make the return values be numbers. You can do that by writing+prompt("...")instead of justprompt("...")