{
    "path": "/home/krm/dev/mimer-academia/programing/js/objects/Questions/prototype.sv.json",
    "s": "Ignor",
    "invert": true,
    "level": 1,
    "title": [
        "Prototyper"
    ],
    "author": [
        "krm"
    ],
    "created": {
        "year": 2023,
        "month": 10,
        "day": 12
    },
    "status": "alpha",
    "description": [
        "Ange värdet på utrycket nedan."
    ],
    "statments": [],
    "comment": [],
    "cards": [
        {
            "level": 1,
            "index": 1,
            "exactly": true,
            "title": [
                "let A = {\"a\": 1}; let B = {\"b\": 2}; B.b"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "2"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 2,
            "exactly": true,
            "title": [
                "let A = {\"a\": 1}; let B = {\"b\": 2}; A.b"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "undefined"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 3,
            "exactly": true,
            "title": [
                "let A = {\"a\": 1}; let B = {\"b\": 2};Object.setPrototypeOf(A,B); A.b"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "2"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 4,
            "exactly": true,
            "title": [
                "let A = {\"a\": 1}; Object.setPrototypeOf(A,{b:2, c:3});Object.setPrototypeOf(A,{b:0, c:4}); A.a+A.b+A.c"
            ],
            "description": [],
            "statments": [],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "title": [
                "🪧 Vi leker med en konstruktor"
            ],
            "description": [
                "I uppgifterna nedan utgå från att de utförs efter varandra."
            ],
            "lang": "js",
            "code": "let A = {\n\t\"a\": 1\n}\nlet B = {\n\"a\": 11,\n\t\"b\": 20\n}\nlet C = {\n\t\"c\": 33\n}\nObject.setPrototypeOf(A,B)\nObject.setPrototypeOf(B,C)",
            "statments": [],
            "comment": [],
            "cards": [
                {
                    "level": 2,
                    "index": 5,
                    "exactly": true,
                    "title": [
                        "A.a"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "1"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 6,
                    "exactly": true,
                    "title": [
                        "A.b+A.c"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "53"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 7,
                    "exactly": true,
                    "title": [
                        "A.b=2;B.b"
                    ],
                    "description": [
                        "20"
                    ],
                    "statments": [],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 8,
                    "exactly": true,
                    "title": [
                        "C.c=99;A.c"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "99"
                            ]
                        }
                    ],
                    "comment": []
                }
            ],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 9,
            "reflection": true,
            "title": [
                "Varför kan det vara bra att använda prototyper?"
            ],
            "description": [],
            "statments": [],
            "comment": [],
            "kind": "question"
        }
    ],
    "kind": "questions"
}