{
    "path": "/home/krm/dev/mimer-academia/programing/js/functional/Questions/closure.sv.json",
    "s": "Ignor",
    "invert": true,
    "level": 1,
    "title": [
        "Closure"
    ],
    "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 x = \"Hello World!\"; function foo() {return x}; foo()"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "\"Hello World!\""
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 2,
            "exactly": true,
            "title": [
                "{let x = 123; function foo() {return x}}; foo()"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "123"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 3,
            "exactly": true,
            "title": [
                "{let x = 123; function foo() {return x}}; x"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "Uncaught ReferenceError: x is not defined"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 4,
            "exactly": true,
            "title": [
                "let x = 1;let y=2;{let x = 3; let z=4; function foo(z) {return x*y*z}}; foo(7)"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "42"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "title": [
                "🪧 Vi leker med funktioner"
            ],
            "description": [
                "I uppgifterna nedan utgå från att de utförs efter varandra."
            ],
            "lang": "js",
            "code": "let sum = 1;\nfunction Adding(term=1) {\nsum += term;\nreturn sum;\n}",
            "statments": [],
            "comment": [],
            "cards": [
                {
                    "level": 2,
                    "index": 5,
                    "exactly": true,
                    "title": [
                        "Adding(2)"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "3"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 6,
                    "exactly": true,
                    "title": [
                        "Adding(3)"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "6"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 7,
                    "exactly": true,
                    "title": [
                        "Adding()"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "7"
                            ]
                        }
                    ],
                    "comment": []
                },
                {
                    "level": 2,
                    "index": 8,
                    "exactly": true,
                    "title": [
                        "Adding();sum"
                    ],
                    "description": [],
                    "statments": [
                        {
                            "description": [
                                "8"
                            ]
                        }
                    ],
                    "comment": []
                }
            ],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 9,
            "reflection": true,
            "title": [
                "Förklara med egna ord vad som menas med \"clousure\"?."
            ],
            "description": [],
            "statments": [],
            "comment": [],
            "kind": "question"
        }
    ],
    "kind": "questions"
}