« first day (4200 days earlier)      last day (973 days later) » 

09:00
Guys need help with cors policy error.
https://stackoverflow.com/questions/71892521/access-to-xmlhttprequest-at-http-localhost5000-add-from-origin-http-loca
@Tornado Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
any idea
 
1 hour later…
10:01
Any idea about the syntax? I need to use an string as the key of object:
The expected result is: "somestring"
@Shafizadeh 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.
const obj = {
  a: 'somestring'
};
var x = "a";
console.log(obj."x");
886
Q: Dynamically access object property using variable

RichWI'm trying to access a property of an object using a dynamic name. Is this possible? const something = { bar: "Foobar!" }; const foo = 'bar'; something.foo; // The idea is to access something.bar, getting "Foobar!"

10:07
Thanks @VLAZ

« first day (4200 days earlier)      last day (973 days later) »