I'm trying to teach myself javascript, and going through some totorials I saw a counting example where it would count from 0 to 9 and display it. It was a little too easy, so I made my own version which would ask you where to start counting, where to end, and what to count by. For some reason, it combines everything into a string instead of adding the numbers. Code is below, any help would be appreciated.
<html><head></head><body><script type="text/javascript">var start=prompt("Start at:");var end=prompt("End at:");var increment=prompt("Count by:");while (start<=end){document.write(start+"<br />");start+=increment;}</script></body></html>