Skip to end of metadata
Go to start of metadata
  1. Maintain your JSDoc comments. These are important for future maintainers. JSDocis a tool that parses inline documentation in JavaScript source files, and produces HTML documentation of the JavaScript code. JSDoc is similar to the java based javadoc tool.
  2. Use 2 space indents without tab chars. You may need to change the settings on your editor.
    1. For vi or vim, update .vimrc with the following:
      3. Use the correct for-loops. When looping through an object or a hash map, you have to use
      When looping through an array (i.e. something with a length and only numeric keys), you have to use
      Failure to do so will cause trouble when using JS frameworks that override the Array object.
  • No labels