// Create new clientvarclient=newcarto.Client({apiKey:'YOUR_API_KEY_HERE',username:'YOUR_USERNAME_HERE'});// Add a dataview to the clientclient.addDataview(dataview).then(()=>{console.log('Dataview added');}).catch(cartoError=>{console.error(cartoError.message);});// Add a layer to the clientclient.addLayer(layer).then(()=>{console.log('Layer added');}).catch(cartoError=>{console.error(cartoError.message);});