topical media & game development

talk show tell print

mobile-js-parts-ch02.txt / txt



  chapter: Grammar
  ==================
  var that = this;
      
      
  ====================================
  /*
      var rm_a = /a*/.match(s);
  */
      
      
  ====================================
  abstract
  boolean break byte
  case catch char class const continue
  debugger default delete do double
  else enum export extends
  false final finally float for function
  goto
  if implements import in instanceof int interface
  long
  native new null
  package private protected public
  return
  short static super switch synchronized
  this throw throws transient true try typeof
  var volatile void
  while with
      
      
  ====================================
  "A" === "\u0041"
      
      
  ====================================
  'c' + 'a' + 't' === 'cat'
      
      
  ====================================
  'cat'.toUpperCase(  ) === 'CAT'
      
      
  ====================================
  for (myvar in obj) {
      if (obj.hasOwnProperty(myvar)) {
          ...
      }
  }
      
      
  ====================================
  2 + 3 * 5 === 17
  (2 + 3) * 5 === 25
      
      
  ==================


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.