3 ms·
const in C++ is very different than const in JavaScript though. I guess you are well aware of that but I feel like being pedantic. This is allowed in JavaScrip
by speedgoose 5y ago
const in C++ is very different than const in JavaScript though. I guess you are well aware of that but I feel like being pedantic.
This is allowed in JavaScript:
const foo = {bar: 1};
foo.bar = 2;