summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3110a6f..c8fc771 100644
--- a/README.md
+++ b/README.md
@@ -89,7 +89,7 @@ An exercise is defined by 4 simple parts:
* **Solution** code, being a correct solution to the exercise
* **Validation** code that tests the correctness of the user's input
-Exercises need to start and finish with a separation bar (```---``` or ```***```). It should contain 3 code elements (**base**, **solution** and **validation**).
+Exercises need to start and finish with a separation bar (```---``` or ```***```). It should contain 3 code elements (**base**, **solution** and **validation**). It can contain a 4th element that provides **context** code (functions, imports of libraries etc ... that shouldn't be displayed to the user).
---
@@ -107,6 +107,14 @@ Exercises need to start and finish with a separation bar (```---``` or ```***```
assert(x == 10);
```
+ ```js
+ // This is context code available everywhere
+ // The user will be able to call magicFunc in his code
+ function magicFunc() {
+ return 3;
+ }
+ ```
+
---
#### Multi-Languages