Maybe I am missing something obvious here. I feel like I understand the basic idea of promises. But trying to get a handle on the function syntax.
I created an example where I tried to work it out in code in a very verbose way.
Here is example where I try to resolve the promise earlier in the getCookie function
Here is another variant
Seems the part I am struggling with conceptually is how to resolve the the promise and pass it around.
Why can’t I get the chocolate chip cookies I am promised?