Answers for "how to use variable key as dictionary key in javascript"

0

how to use variable key as dictionary key in javascript

var date = d + "-" + mon + "-" + da.getFullYear()
        tbl.insertOne({
            "_id": 104,
            "Date": {
                [date]: {
                    "Activity": "Add agent",
                    "dateTime": date.toUTCString()
                }
            }
        })
Posted by: Guest on July-16-2021

Code answers related to "how to use variable key as dictionary key in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language