For the first one queryCars() is also going to return a Promise since it is marked async. You can do the same await here: var carnr = await queryCars ( “opel” );
For the queryCars2() it’s essentially the same thing. Your .then() is a new Promise and it hasn’t resolved so you can do var carnr2 = await queryCars2(“opel”);
Promises/async can take a bit to really stick so just keep at it and one learning source I like for all things JS is MDN: