You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By week 3 the students are used to work with the promisified execQuery.
The exercise could be upgraded so there are less questions about the weirdness / old school approach.
constexecQuery=util.promisify(connection.query.bind(connection));asyncfunctiongetPopulationFromCountry(name,code){// assuming that connection to the database is established and stored as connreturnexecQuery(`SELECT Population FROM `country` WHERE Name = '${name}' and code = '${code}'`);}
The text was updated successfully, but these errors were encountered:
By week 3 the students are used to work with the promisified execQuery.
The exercise could be upgraded so there are less questions about the weirdness / old school approach.
The text was updated successfully, but these errors were encountered: