parent
263d8d2fb1
commit
6ec9ff5509
|
@ -116,7 +116,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": null,
|
||||
"id": "fc4cb14a-4ba6-470d-b155-2ba16e596f36",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
@ -125,15 +125,7 @@
|
|||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Hallo Welt!\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"const hallo: String = \"Hallo Welt!\"\n",
|
||||
"console.log(hallo)"
|
||||
|
@ -159,7 +151,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"execution_count": null,
|
||||
"id": "666c0605-a5b4-444d-857e-ce1b993d42fc",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
@ -168,15 +160,7 @@
|
|||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Alte Variable: Hallo Welt!\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"console.log(\"Alte Variable: \" + hallo)"
|
||||
]
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"execution_count": null,
|
||||
"id": "594735d3-e90e-443e-9eff-e4600c331bc2",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
|
@ -43,16 +43,19 @@
|
|||
"tags": []
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"let vorname = 'Franz'"
|
||||
]
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": 2,
|
||||
"id": "245aec76-71a6-478e-9301-08ca4e14ff71",
|
||||
"metadata": {
|
||||
"collapsed": true,
|
||||
"editable": false,
|
||||
"jupyter": {
|
||||
"outputs_hidden": true,
|
||||
"source_hidden": true
|
||||
},
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
|
@ -65,9 +68,19 @@
|
|||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"A1: vorname ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(2ms)\u001b[0m\n",
|
||||
"A1: vorname ... \u001b[0m\u001b[31mFAILED\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[32mok\u001b[0m | 1 passed | 0 failed \u001b[0m\u001b[38;5;245m(3ms)\u001b[0m\n"
|
||||
"\u001b[0m\u001b[1m\u001b[37m\u001b[41m ERRORS \u001b[0m\n",
|
||||
"\n",
|
||||
"A1: vorname \u001b[0m\u001b[38;5;245m=> <anonymous>:1:27\u001b[0m\n",
|
||||
"\u001b[0m\u001b[1m\u001b[31merror\u001b[0m: ReferenceError: vorname is not defined\n",
|
||||
" at \u001b[0m\u001b[36m<anonymous>\u001b[0m:\u001b[0m\u001b[33m2\u001b[0m:\u001b[0m\u001b[33m16\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[1m\u001b[37m\u001b[41m FAILURES \u001b[0m\n",
|
||||
"\n",
|
||||
"A1: vorname \u001b[0m\u001b[38;5;245m=> <anonymous>:1:27\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[31mFAILED\u001b[0m | 0 passed | 1 failed \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -96,7 +109,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": null,
|
||||
"id": "7daea9ea-3417-48d9-9416-3462cc38f8bc",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
|
@ -106,18 +119,17 @@
|
|||
"tags": []
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"let blume = 'Rose'\n",
|
||||
"let tier = \"Käfer\""
|
||||
]
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": 3,
|
||||
"id": "4f710df6-8465-4da1-a997-4e34ea80d6ed",
|
||||
"metadata": {
|
||||
"collapsed": true,
|
||||
"editable": false,
|
||||
"jupyter": {
|
||||
"outputs_hidden": true,
|
||||
"source_hidden": true
|
||||
},
|
||||
"slideshow": {
|
||||
|
@ -132,10 +144,25 @@
|
|||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"A2: blume ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"A2: tier ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"A2: blume ... \u001b[0m\u001b[31mFAILED\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"A2: tier ... \u001b[0m\u001b[31mFAILED\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[32mok\u001b[0m | 2 passed | 0 failed \u001b[0m\u001b[38;5;245m(1ms)\u001b[0m\n"
|
||||
"\u001b[0m\u001b[1m\u001b[37m\u001b[41m ERRORS \u001b[0m\n",
|
||||
"\n",
|
||||
"A2: blume \u001b[0m\u001b[38;5;245m=> <anonymous>:1:27\u001b[0m\n",
|
||||
"\u001b[0m\u001b[1m\u001b[31merror\u001b[0m: ReferenceError: blume is not defined\n",
|
||||
" at \u001b[0m\u001b[36m<anonymous>\u001b[0m:\u001b[0m\u001b[33m2\u001b[0m:\u001b[0m\u001b[33m16\u001b[0m\n",
|
||||
"\n",
|
||||
"A2: tier \u001b[0m\u001b[38;5;245m=> <anonymous>:4:6\u001b[0m\n",
|
||||
"\u001b[0m\u001b[1m\u001b[31merror\u001b[0m: ReferenceError: tier is not defined\n",
|
||||
" at \u001b[0m\u001b[36m<anonymous>\u001b[0m:\u001b[0m\u001b[33m5\u001b[0m:\u001b[0m\u001b[33m16\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[1m\u001b[37m\u001b[41m FAILURES \u001b[0m\n",
|
||||
"\n",
|
||||
"A2: blume \u001b[0m\u001b[38;5;245m=> <anonymous>:1:27\u001b[0m\n",
|
||||
"A2: tier \u001b[0m\u001b[38;5;245m=> <anonymous>:4:6\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[31mFAILED\u001b[0m | 0 passed | 2 failed \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -147,14 +174,6 @@
|
|||
" assertEquals(tier, 'Käfer')\n",
|
||||
"})"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "7e412bca-64f2-434b-be3f-87500354cfba",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 3,
|
||||
"id": "5cbd4fea-aa4c-4132-b6a5-600477bbe9aa",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
@ -114,7 +114,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"execution_count": 6,
|
||||
"id": "7ea0e464-e3b7-43fb-807b-90f8232d4feb",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
@ -142,14 +142,6 @@
|
|||
"let s: string = hallo(); // Funktion `hallo` wird aufgerufen und das Ergebnis in der Variablen s gespeichert\n",
|
||||
"console.log(s); // Inhalt der Variablen `s` ausgeben"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "11ff8567-1d69-4165-bea3-64772b175b21",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": null,
|
||||
"id": "4fbccfbc-2e07-4214-a665-4b13afb2723e",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"execution_count": null,
|
||||
"id": "90e1aef5-ac02-45a6-9f98-3c812ed506f0",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
|
@ -43,15 +43,11 @@
|
|||
"tags": []
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"function hallo() {\n",
|
||||
" return \"Hallo Welt!\"\n",
|
||||
"}"
|
||||
]
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": null,
|
||||
"id": "a6e2ef7a-6785-44b4-be55-55ef733320bd",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
@ -63,18 +59,7 @@
|
|||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"01.02.1: hallo ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"01.02.1: hallo ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[32mok\u001b[0m | 2 passed | 0 failed \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"Deno.test(\"01.02.1: hallo\", () => {\n",
|
||||
" assertEquals(typeof hallo, 'function')\n",
|
||||
|
@ -101,7 +86,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": null,
|
||||
"id": "89bda355-b2d5-4e47-9c7e-e711a5663f72",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
|
@ -111,18 +96,11 @@
|
|||
"tags": []
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"function a() {\n",
|
||||
" return \"Hallo a!\"\n",
|
||||
"}\n",
|
||||
"function b() {\n",
|
||||
" return \"Hallo b!\"\n",
|
||||
"}"
|
||||
]
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": null,
|
||||
"id": "f084bd1d-cd11-49f7-a0aa-ee33fd7886d3",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
@ -134,20 +112,7 @@
|
|||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"01.02.2: a ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"01.02.2: b ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"01.02.2: a ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"01.02.2: b ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[32mok\u001b[0m | 4 passed | 0 failed \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"Deno.test(\"01.02.2: a\", () => {\n",
|
||||
" assertEquals(typeof a, 'function')\n",
|
||||
|
@ -181,7 +146,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"execution_count": null,
|
||||
"id": "956109e0-0e4a-416b-94a3-4a6f6c88caf9",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
|
@ -191,17 +156,11 @@
|
|||
"tags": []
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"function begruesse() {\n",
|
||||
" return \"Moin!\"\n",
|
||||
"}\n",
|
||||
"\n",
|
||||
"let begruessung = begruesse()"
|
||||
]
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"execution_count": null,
|
||||
"id": "d013cd3d-eb31-4a4f-a679-990fb77243c7",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
@ -213,20 +172,7 @@
|
|||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"01.02.3: begruesse ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"01.02.3: begruesse ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"01.02.3: begruessung ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"01.02.3: begruessung ... \u001b[0m\u001b[32mok\u001b[0m \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[0m\u001b[32mok\u001b[0m | 4 passed | 0 failed \u001b[0m\u001b[38;5;245m(0ms)\u001b[0m\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"Deno.test(\"01.02.3: begruesse\", () => {\n",
|
||||
" assertEquals(typeof begruesse, 'function')\n",
|
||||
|
@ -241,14 +187,6 @@
|
|||
" assertEquals(begruessung, 'Moin!')\n",
|
||||
"})"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "212b6a34-4dfe-41b9-861e-5da95ea4743e",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 10,
|
||||
"id": "5234f737-4fbd-42ca-8481-81f878cc65d3",
|
||||
"metadata": {
|
||||
"editable": false,
|
||||
|
|
|
@ -282,7 +282,7 @@
|
|||
" assertEquals(gleich(1, 2), false)\n",
|
||||
"})\n",
|
||||
"Deno.test(\"01.03.4: gleich('klein','klein')\", () => {\n",
|
||||
" assertEquals(gleich('klein', 'klein'), true)\n",
|
||||
" assertEquals(gleich('klein', 'klein'), false)\n",
|
||||
"})\n",
|
||||
"Deno.test(\"01.03.4: gleich('Links','Rechts')\", () => {\n",
|
||||
" assertEquals(gleich('Links', 'Rechts'), false)\n",
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
" assertEquals(gleich(1, 2), 'UNGLEICH')\n",
|
||||
"})\n",
|
||||
"Deno.test(\"01.03.5: gleich('klein','klein')\", () => {\n",
|
||||
" assertEquals(gleich('klein', 'klein'), 'GLEICH')\n",
|
||||
" assertEquals(gleich('klein', 'klein'), 'UNGLEICH')\n",
|
||||
"})\n",
|
||||
"Deno.test(\"01.03.5: gleich('Links','Rechts')\", () => {\n",
|
||||
" assertEquals(gleich('Links', 'Rechts'), 'UNGLEICH')\n",
|
||||
|
|
Loading…
Reference in New Issue