In table tag if I mention some Id, example, <table id='tb'>, I don't need to use getElementById('tb') to get the element. If I do console.log(ta), it shows result. How it happens? Where can I find the description?
For objects equality is identity. For primitives, the comparison is by value. In fact, it's the same for objects. The value of an object is its reference. Not the content that sits behind that reference. Hence why comparing objects is only true if they are one and the same.
The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object ...
folks, can we please protect Check if a string is a date value? They keep beating the dead horse over and over by rehashing same answers when everything that there is to be said is exhausted twice over. See most recent answer. Not sure if it worth raising a meta
I have a table in which there is already "userId" column (set as partition key) and createdAt column (set as the sort key), I also need the "id" to be able to find the exact row in case, I don't have a user ID available. So I made the "id" column as global secondary index. Is that ok, or should I change the partition key to "id" in my case?
@BradAndrews 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.
3 hours later…
user16466354
23:19
@Microloft When you can, can you show me how to do what you suggested. I don't know how to implement that in the code.