{
    "path": "/home/krm/dev/mimer-academia/programing/js/datatypes/Questions/object.sv.json",
    "s": "Ignor",
    "invert": true,
    "level": 1,
    "title": [
        "Object"
    ],
    "author": [
        "krm"
    ],
    "created": {
        "year": 2023,
        "month": 9,
        "day": 26
    },
    "status": "alpha",
    "description": [
        "Ange värdet på utrycket nedan. Blir det ett fel så skriv vilken typ av error det blir. Finns det fler utryck på samma rad är det värdet av det \nsista utrycket som ska anges. Observera att för objekt är ordningen på \negenskperna inte definerat, det gör att några av frågorna nedan kan ha \nflera svar där ordningen som egenskaperna skrivs ut varierar."
    ],
    "statments": [],
    "comment": [],
    "cards": [
        {
            "level": 1,
            "index": 1,
            "exactly": true,
            "title": [
                "let o={a: 1, b: 2}; o[\"a\"]"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "1"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 2,
            "exactly": true,
            "title": [
                "let o={a: 1, b: 2}; typeof o"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "object"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 3,
            "exactly": true,
            "title": [
                "let o={a: 1, b: 2}; o"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "{ a: 1, b: 2 }"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 4,
            "exactly": true,
            "title": [
                "Boolean({});"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "true"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 5,
            "exactly": true,
            "title": [
                "Number({});"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "NaN"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "title": [
                "🪧 Vi leker med objekt"
            ],
            "description": [],
            "lang": "js",
            "code": "let OO = {a:10,b:20,c:30,d:40};\nlet O = {a:1, o:OO, b:\"boo\", c:3, d:{I:{a:{b:{c:\"d\"}}}, II:2,III:3,\"IV elefanter\":4, \"V myror\":5}, e: 5}",
            "statments": [],
            "comment": [],
            "cards": [
                {
                    "level": 2,
                    "index": 6,
                    "exactly": true,
                    "title": [
                        "O[\"a\"]"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "1"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 7,
                    "exactly": true,
                    "title": [
                        "O.a"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "1"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 8,
                    "exactly": true,
                    "title": [
                        "O.b + 0"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "boo0"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 9,
                    "exactly": true,
                    "title": [
                        "O.d.II + O.c"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "5"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 10,
                    "exactly": true,
                    "title": [
                        "O.d[\"IV elefanter\"] > O.d[\"V myror\"]"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "false"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 11,
                    "exactly": true,
                    "title": [
                        "O.d.I.a.b.c"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "d"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 12,
                    "exactly": true,
                    "title": [
                        "O.d.I.a.b.c.d"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "undefined"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 13,
                    "exactly": true,
                    "title": [
                        "O.d.I.a.b.c.d.e"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "Uncaught TypeError: O.d.I.a.b.c.d is undefined"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 14,
                    "exactly": true,
                    "title": [
                        "O.e = \"5\"; O.e + 5"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "55"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 15,
                    "exactly": true,
                    "title": [
                        "O.o.d"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "40"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 16,
                    "exactly": true,
                    "title": [
                        "Object.keys(OO)"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                [
                                    " \"a\", \"b\", \"c\", \"d\""
                                ]
                            ]
                        }
                    ],
                    "comment": []
                }
            ],
            "kind": "question"
        },
        {
            "level": 1,
            "title": [
                "🪧 Vi leker mer med objekt"
            ],
            "description": [],
            "lang": "js",
            "code": "let o = {a:1,b:2,c:3};\nlet oo = o;\noo.b = 22;\no.c = 33;",
            "statments": [],
            "comment": [],
            "cards": [
                {
                    "level": 2,
                    "index": 17,
                    "exactly": true,
                    "title": [
                        "o.a"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "1"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 18,
                    "exactly": true,
                    "title": [
                        "o.b"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "22"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 19,
                    "exactly": true,
                    "title": [
                        "oo.c"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "33"
                            ]
                        }
                    ],
                    "comment": []
                }
            ],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 20,
            "exactly": true,
            "title": [
                "Object.assign({},{a:1,b:2})"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "{ a: 1, b: 2 }"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 21,
            "exactly": true,
            "title": [
                "Object.assign({b:20,c:30},{a:1,b:2})"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "{ b: 2, c: 30, a: 1 }"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 22,
            "exactly": true,
            "title": [
                "Object.assign({a:1}, {b:2,},{c:3})"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "{ a: 1, b: 2, c: 3 }"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 23,
            "exactly": true,
            "title": [
                "Vad blir utskriften av koden nedan?"
            ],
            "description": [],
            "lang": "js",
            "code": "let o = {a:11,b:22,c:33};\nfor(let key in o) {\nconsole.log(o[key]);\n}",
            "statments": [
                {
                    "description": [
                        "11\\n22\\n33\\n"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 24,
            "reflection": true,
            "title": [
                "Vad menas med en \"deep copy\" av ett objekt?"
            ],
            "description": [],
            "statments": [],
            "comment": [],
            "kind": "question"
        }
    ],
    "kind": "questions"
}