2016-10-09 22:14:46 +02:00
|
|
|
# 3.3 Übung: Etwas über das System herausfinden
|
|
|
|
|
2016-10-10 01:33:54 +02:00
|
|
|
{% 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 call magicFunc in his code
|
|
|
|
function magicFunc() {
|
|
|
|
return 3;
|
|
|
|
}
|
2016-10-10 01:41:21 +02:00
|
|
|
{% endexercise %}
|
|
|
|
|
2016-10-10 01:44:24 +02:00
|
|
|
This is a spoiler: {%s%}Hello World.{%ends%}
|