there is a certain function from which it is necessary to pull out value.
function func () {
  let a
  sql = `SELECT * FROM ...`
  db.query(sql, function (err, results) {
    if (err) throw err
    a = ...
  })
  return a
}
func()
let per = func()
But all the time undefined. This is solved by async / await ?
 
    