Tern Lint Demo var id = "100"; document.getElementById(id); document.getElementById(100); document.getElementById("id"); document.getElementById(null); document.getElementById(xxx); var b = true; document.addEventListener("", b, true) var f = function() {}; document.addEventListener("", f, true) new Date().setHours("hours") new Date().setHours(10) function test(a) { var t = a; }; test('something'); test(10); Demonstrates integration of Tern and CodeMirror. The following keys are bound: Ctrl-SpaceAutocomplete Ctrl-IFind type at cursor Alt-.Jump to definition (Alt-, to jump back) Ctrl-QRename variable Documentation is sparse for now. See the top of the script for a rough API overview.