« first day (4933 days earlier)      last day (27 days later) » 
00:00 - 19:0020:00 - 21:00

8:03 PM
@KevinB kind of a shortcut of undefined except it was never even set to undefined either.
 
8:24 PM
    Why I am getting an empty object when I try to execute

fetch('https://jsonplaceholder.typicode.com/todos/1')
  .then(response => {
    const setCookieHeader = response.headers.get('Set-Cookie');

    console.log('Set-Cookie:', setCookieHeader);
  })
 
@MileMijatović Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
Set-Cookie: null
or if I try to console.log response.headers

Set-Cookie: Headers {}
 
00:00 - 19:0020:00 - 21:00

« first day (4933 days earlier)      last day (27 days later) »