Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 2 Support (Qt 5) › Can't use "constructor" string in Array or Object


Viewing 1 post (of 1 total)
  • Author
  • #24208


    Sorry for this question, I am a beginner.

    Don’t I know about this?

        function test() {
            const idObj = [{"constructor":"constructor", "home":"home"}]
            const idArr = ["constructor", "home"]
            console.log("results: ", idObj["constructor"], idArr["constructor"])

    I cant use the “constructor” string as object or array value. Output from the code above is:

    results: function Array() { [native code] } function Array() { [native code] }

    Can someone teach me about this?


    Thanks 🙂


Viewing 1 post (of 1 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded