From 8bb9f2e2c6628f4e41ceb91d6cdb03717b2d04cc Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Wed, 1 Nov 2017 22:20:55 +0000 Subject: [PATCH] Updates kapitel-3.md Auto commit by GitBook Editor --- book.json | 3 +++ kapitel-3.md | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 book.json diff --git a/book.json b/book.json new file mode 100644 index 0000000..3c6d55c --- /dev/null +++ b/book.json @@ -0,0 +1,3 @@ +{ + "plugins": ["exercises"] +} \ No newline at end of file diff --git a/kapitel-3.md b/kapitel-3.md index 30754ae..6c68586 100644 --- a/kapitel-3.md +++ b/kapitel-3.md @@ -1,4 +1,24 @@ # Kapitel 3: Übertragungsprotokolle und Datentransformationen \(02.11.2017\) +{% exercise %} +Define a variable `x` equal to 10. +{% initial %} +var x = + +{% solution %} +var x = 10; + +{% validation %} +assert(x == 10); + +{% context %} +// This is context code available everywhere +// The user will be able to evaluate `exposedVar` +var exposedVar = 3; +// ... or call `exposedFunction` +function exposedFunction { + return 3; +} +{% endexercise %}