Tuesday, August 9, 2016

Random JavaScript notes

  1. name or id of any HTML element cannot be same as the name of the JS function that element is used to call.
    e.g. <input name="foo" id="foo" onclick "foo()" /> 
  2. Consider using 'map', 'filter' and 'reduce'; instead of loops

No comments:

Post a Comment