topical media & game development

talk show tell print

lib-jquery-learning-code-11-global-functions-global-functions.js / js



  document.ready(function() {
    var myArray = [52, 97, 0.5, -22];
    
    .each(myArray, function(index, value) {
      $('#array-contents').append('<li>' + value + '</li>');
    });
    
    $('#array-sum').append(.sum(myArray));
  });
  


(C) Æliens 20/2/2008

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.