{
    "path": "/home/krm/dev/mimer-academia/programing/js/datatypes/Questions/array.sv.json",
    "s": "Ignor",
    "invert": true,
    "level": 1,
    "title": [
        "Array"
    ],
    "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. Förutom koden som ska vara gemensam så \nutgår vi från att inget utryck påverkar en annan uppgift."
    ],
    "statments": [],
    "comment": [],
    "cards": [
        {
            "level": 1,
            "index": 1,
            "exactly": true,
            "title": [
                "let a=[1,2,3,4,5,6]; a[0]+a[3]"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "5"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 2,
            "exactly": true,
            "title": [
                "let a=[1,2,3]; typeof a"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "object"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 3,
            "exactly": true,
            "title": [
                "let a=[1,2,3]; a"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        [
                            " 1, 2, 3"
                        ]
                    ]
                }
            ],
            "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": [
                        "0"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 6,
            "exactly": true,
            "title": [
                "Array.isArray([1,2])"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "true"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 7,
            "exactly": true,
            "title": [
                "Array.isArray(12)"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "false"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 8,
            "exactly": true,
            "title": [
                "[2,3]+[\"a\",\"b\"]"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "2,3a,b"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "title": [
                "🪧 Vi leker med listor"
            ],
            "description": [],
            "lang": "js",
            "code": "let a = [1, 2, 3, 4, 5, 6, 7, 8, 9,0];\nlet aa = [\"a\", \"b\", \"c\", \"d\", \"e\", \"f\"];\nlet aaa = [ a, aa, \"js\", [ 1, [ 2, 3]]]",
            "statments": [],
            "comment": [],
            "cards": [
                {
                    "level": 2,
                    "index": 9,
                    "exactly": true,
                    "title": [
                        "a[0]"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "1"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 10,
                    "exactly": true,
                    "title": [
                        "aa[0]+aa[1]+aa[2]"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "abc"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 11,
                    "exactly": true,
                    "title": [
                        "a[9]*a[1]"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "0"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 12,
                    "exactly": true,
                    "title": [
                        "aa[6]"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "undefined"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 13,
                    "exactly": true,
                    "title": [
                        "aaa[1][5]"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "f"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 14,
                    "exactly": true,
                    "title": [
                        "aaa[3][1][0]"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "2"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 15,
                    "exactly": true,
                    "title": [
                        "a.length"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "10"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 16,
                    "exactly": true,
                    "title": [
                        "a.slice(8)"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                [
                                    " 9, 0"
                                ]
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 17,
                    "exactly": true,
                    "title": [
                        "a.slice(8); a"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                [
                                    " 1, 2, 3, 4, 5, 6, 7, 8, 9, 0"
                                ]
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 18,
                    "exactly": true,
                    "title": [
                        "a.splice(3,2)"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                [
                                    " 4, 5"
                                ]
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 19,
                    "exactly": true,
                    "title": [
                        "aa.splice(3,2);aa"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                [
                                    " \"a\", \"b\", \"c\", \"f\""
                                ]
                            ]
                        }
                    ],
                    "comment": []
                }
            ],
            "kind": "question"
        },
        {
            "level": 1,
            "title": [
                "🪧 Vi leker mer med objekt"
            ],
            "description": [
                "I koden nedan så utgår vi från att de görs i tur och ordning och om utrycket förändrar objektet a är det detta som används i nästa uppgift."
            ],
            "lang": "js",
            "code": "const a = [\"a\",\"b\",\"c\"]",
            "statments": [],
            "comment": [],
            "cards": [
                {
                    "level": 2,
                    "index": 20,
                    "exactly": true,
                    "title": [
                        "a.pop()"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "c"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 21,
                    "exactly": true,
                    "title": [
                        "a.push(\"C++\")"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "3"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 22,
                    "exactly": true,
                    "title": [
                        "a"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                [
                                    " \"a\", \"b\", \"C++\""
                                ]
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 23,
                    "exactly": true,
                    "title": [
                        "a.shift();"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "a"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 24,
                    "exactly": true,
                    "title": [
                        "a.unshift(\"Ada\");"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "3"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 25,
                    "exactly": true,
                    "title": [
                        "a"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                [
                                    " \"Ada\", \"b\", \"C++\""
                                ]
                            ]
                        }
                    ],
                    "comment": []
                }
            ],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 26,
            "exactly": true,
            "title": [
                "Vad blir utskriften av koden nedan?"
            ],
            "description": [],
            "lang": "js",
            "code": "let names = [\"Tom\", \"Mats\", \"Eva\", \"Krm\"];\nfor(let i = 0; i < names.length; i++) {\nconsole.log(i+\": \"+names[i]);\n}",
            "statments": [
                {
                    "description": [
                        "0: Tom\\n1: Mats\\n2: Eva\\n3: Krm\\n"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 27,
            "exactly": true,
            "title": [
                "Vad blir utskriften av koden nedan?"
            ],
            "description": [],
            "lang": "js",
            "code": "let names = [\"Tom\", \"Mats\", \"Eva\", \"Krm\"];\nfor(let name of names) {\nconsole.log(name+\" : \"+name.length);\n}",
            "statments": [
                {
                    "description": [
                        "Tom : 3\\nMats : 4\\nEva : 3\\nKrm : 3\\n"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 28,
            "reflection": true,
            "title": [
                "Vad menas med en \"kö\"?"
            ],
            "description": [],
            "statments": [],
            "comment": [],
            "kind": "question"
        }
    ],
    "kind": "questions"
}