Hey guys I have a js promise question but it is giving me errors

```
function delay(n) {
    return new Promise((resolve) => setTimeout(resolve, n*1000));
}

```

This is supposed to say it is now 2 seconds later and then is is now 1.5 seconds later but it says

> 
> It is now undefined later  
> 
> It is now undefined later
> 
> 
> 

```
delay(2)
    .then(seconds => console.log(`It is now ${seconds} later`))
    .then(() => delay(1.5))
    .then(seconds => console.log(`It is now ${seconds} later`));

```