Is there an example project how to use $w("#myDataset").new() ? why is property $w("#myDataset").new() doesn't exist?

$w.onReady( () => {
$w(“#myDataset”).onReady( () => {
$w(“#myDataset”).new()
.then( ( ) => {
console.log(“New item created”);
} )
.catch( (err) => {
let errMsg = err;
} );

} );

} );

ID wrong? It looks correct to me

You incorrectly have your page onReady() function inside of another function.

Okay, i try again. thanks