Query and get it with function

Try this:

$w.onReady(async function () { 
let a = await lundi();
let b = await mardi();
console.log(a);
console.log(b);
});

I put the things you have to add in orange.