What is the difference between the below javascript “object” declaration?
Please could someone enlighten a newbie as to what the difference is between the below code? The goal for me is to have a object with a set of properties that I can use across my app. And by the looks of it, both of these code snippets work the same.
How do I store and retrieve dates as utc to enable comparison?
I’m storing am expiry date as a UTC string using toISOString().