mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 23:55:20 +00:00
Add context code support to exercises (optional)
Partial #52, fixes #49, fixes #46
This commit is contained in:
@@ -2,6 +2,7 @@ define(function() {
|
||||
return {
|
||||
id: "javascript",
|
||||
assertCode: "function assert(condition, message) { \nif (!condition) { \n throw message || \"Assertion failed\"; \n } \n }\n",
|
||||
REPL: JSREPL
|
||||
REPL: JSREPL,
|
||||
sep: ";\n",
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user