function find() {
let numberPage = 22;
getPromiseOpenPage(numberPage);
function getPromiseOpenPage (numberPage) {
return new Promise( function (resolve, reject) {
resolve(numberPage);
})
}
getPromiseOpenPage().then(
function (res) {
console.log(res);
getPromiseOpenPage(res++);
}
)
}