I\'m new with javascript, and I\'m having some trouble understanding why this code doesn\'t execute:
var weight; wight=parseInt(prompt(\"Please, enter weight\")
Try this
var weight; weight=parseInt(prompt("Please, enter weight")); while (weight>0) { if (weight>199 && weight<300) { document.write("Tax will be" + weight*5); } else { document.write("Tax will be" + weight*10); } }