It is necessary that the person entered the first number, then the second, then their result was derived. What are the suggestions? The idea of ​​dialogue within the first dialogue is unsuccessful!

    1 answer 1

    function myFunction() { var someNumber = parseInt(prompt("Введите число")); var someAnotherNumber = parseInt(prompt("Введите еще одно число")); //ну а дальше уже разберетесь }