diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-05 13:53:22 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-05 13:53:22 -0700 |
commit | 694afeccc5e708d5aa7c1c0071d9efaf2719b48e (patch) | |
tree | b1b286f45530e5158f6cac852972b112b7987a4d /theme/javascript/execute/javascript.js | |
parent | d5bd08dcd21c838ef9da5d8a54ee5f847b737a02 (diff) | |
download | gitbook-694afeccc5e708d5aa7c1c0071d9efaf2719b48e.zip gitbook-694afeccc5e708d5aa7c1c0071d9efaf2719b48e.tar.gz gitbook-694afeccc5e708d5aa7c1c0071d9efaf2719b48e.tar.bz2 |
Add base for exercise for others languages
Diffstat (limited to 'theme/javascript/execute/javascript.js')
-rw-r--r-- | theme/javascript/execute/javascript.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/theme/javascript/execute/javascript.js b/theme/javascript/execute/javascript.js new file mode 100644 index 0000000..d967038 --- /dev/null +++ b/theme/javascript/execute/javascript.js @@ -0,0 +1,7 @@ +define(function() { + return { + id: "javascript", + assertCode: "function assert(condition, message) { \nif (!condition) { \n throw message || \"Assertion failed\"; \n } \n }\n", + REPL: JSREPL + }; +});
\ No newline at end of file |