This editor is hooked up to Tern. The drop-down in the top right corner lists the commands and keyboard shortcuts available. Output and function argument hints will appear in the bar below the editor.
define(function() { return { capitalize: function(word) { return word.charAt(0).toUpperCase() + word.slice(1); }, garble: function(word) { return word.replace(/[auiyoe]/g, function() { return "auiyoe".charAt(Math.floor(Math.random() * 6)); }); } }; });