Table result is undefined

I ran two logs in the following location in the code:
query.find().then(res =>
{
$w(’ #table2 ‘).rows = res.items;
let table_result= $w(’ #table2 ');
console.log(“The items are "” + res.items +“"”);
console.log("Table result is " + table_result.items);
})
I get the following response:
The items are “”
Table result is undefined

Since posting I see other mistakes (newbie) but in the interest of reducing confusion, I’ve changed nothing but console.log.