{
    "path": "/home/krm/dev/mimer-academia/programing/js/introduction/Questions/io.sv.json",
    "s": "Ignor",
    "invert": true,
    "level": 1,
    "title": [
        "Input och Output"
    ],
    "status": "alpha",
    "author": [
        "krm"
    ],
    "created": {
        "year": 2022,
        "month": 10,
        "day": 5
    },
    "description": [],
    "statments": [],
    "comment": [],
    "cards": [
        {
            "level": 1,
            "index": 1,
            "title": [
                "Vad betyder input?"
            ],
            "description": [],
            "statments": [
                {
                    "right": true,
                    "description": [
                        "Att data ges till programmet."
                    ]
                },
                {
                    "description": [
                        "Att data ges ifrån programmet."
                    ]
                },
                {
                    "description": [
                        "Att som progrtammerare läsa kod."
                    ]
                },
                {
                    "description": [
                        "Att som progrtammerare skriva kod."
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 2,
            "title": [
                "Vad betyder output?"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "Att data ges till programmet."
                    ]
                },
                {
                    "right": true,
                    "description": [
                        "Att data ges ifrån programmet."
                    ]
                },
                {
                    "description": [
                        "Att som progrtammerare läsa kod."
                    ]
                },
                {
                    "description": [
                        "Att som progrtammerare skriva kod."
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 3,
            "exactly": true,
            "title": [
                "Vilken funktion kan vi använda för input?"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "prompt"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 4,
            "exactly": true,
            "title": [
                "Fråga efter ett namn och spara i en variable *name*"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "let name = prompt(\"Namn?\");"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 5,
            "exactly": true,
            "title": [
                "Fråga efter ett tal"
            ],
            "description": [],
            "statments": [
                {
                    "description": [
                        "let tal = Number(prompt(\"Tal?\"));"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 6,
            "exactly": true,
            "title": [
                "Vad skriver koden nedan ut?"
            ],
            "description": [],
            "lang": "js",
            "code": "let tal = prompt(\"Ge mig ett tal?\");\nconsole.log(tal+1);",
            "statments": [],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 7,
            "exactly": true,
            "title": [
                "Vad skriver programmet ut?"
            ],
            "description": [
                "Test"
            ],
            "lang": "js",
            "code": "\"use strict\"\nconst a = 0;\na = 1;\nconslog(a);",
            "statments": [
                {
                    "description": [
                        "0"
                    ]
                },
                {
                    "description": [
                        "1"
                    ]
                },
                {
                    "description": [
                        "NaN"
                    ]
                },
                {
                    "right": true,
                    "description": [
                        "Error: Invalid assignment to const 'a'"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 8,
            "exactly": true,
            "title": [
                "Vad skriver programmet ut?"
            ],
            "description": [],
            "lang": "js",
            "code": "\"use strict\"\nlet a = 0;\nlet a;",
            "statments": [
                {
                    "description": [
                        "void"
                    ]
                },
                {
                    "description": [
                        "NaN"
                    ]
                },
                {
                    "description": [
                        "undefined"
                    ]
                },
                {
                    "description": [
                        "Den skriver inte ut något."
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 9,
            "exactly": true,
            "title": [
                "Vad skriver programmet ut?"
            ],
            "description": [],
            "lang": "js",
            "code": "\"use strict\"\nlet a = 0;\n{\nlet a = 1;\nconsole.log(a);\n}\nconsole.log(a);",
            "statments": [
                {
                    "description": [
                        "1\\n0"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 10,
            "exactly": true,
            "title": [
                "Vad skriver programmet ut?"
            ],
            "description": [],
            "lang": "js",
            "code": "\"use strict\"\nlet a = 0;\nlet b = 1;\nlet c = a*2+b*2;\nconsole.log(c/2);",
            "statments": [
                {
                    "description": [
                        "1"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        },
        {
            "level": 1,
            "index": 11,
            "exactly": true,
            "title": [
                "Vad skriver programmet ut?"
            ],
            "description": [],
            "lang": "js",
            "code": "\"use strict\"\nlet a = 2;\nlet b = 3;\nlet c = 0;\nb=a;\nc=b;\na=c*2;\nconsole.log(a+b+c);",
            "statments": [
                {
                    "description": [
                        "8"
                    ]
                }
            ],
            "comment": [],
            "kind": "question"
        }
    ],
    "kind": "questions"
}