Get Product Name on the dynamic Product Page

Hello everyone,
I needed to get the Product Name from the dynamic Product page in my Wix store.

There’s a example:

$w(‘#myProductPage’).getProduct()
.then( (product) => {
let productName = product.name;
} )
.catch( (error) => {
console.log(error);
} );

But how do I get my Product Page ID??

I’m beginner, have no idea how to do it. Can someone please help me, share the code.
Thank you very much for your help.

https://support.wix.com/en/article/corvid-wix-stores-product-collection-fields