JSFiddle - React, Tailwind, and code Playground
JavaScript
alert("Hey! It's dangerous to go alone!");
var input = prompt("Let me see what I can do to help.2.0. Please give me a positive number.");
alert("Great!");
input = parseInt(input);
var input2 = prompt ("One more number and I'll be able to forge something for you. Make this number greater than the first number.");
input2 = parseInt(input2);
input2 -= input;
var weapon = Math.floor(Math.random() * input2) + 1;
input += weapon;
alert (input);