JavaScript

HomePage | RecentChanges | Preferences

JavaScript

React Redux

D3

http://javascript.crockford.com

Node Express

The JavaScript Event Loop https://www.youtube.com/watch?v=8aGhZQkoFbQ

SpaceInvaders

http://ryanmorr.com/understanding-scope-and-context-in-javascript/

https://leanpub.com/javascript-allonge

Prototype

JavaScriptDebug

Sweet Alert http://tristanedwards.me/sweetalert

this http://unschooled.org/2012/03/understanding-javascript-this/

Named vs. Anonymous functions. http://stackoverflow.com/questions/336859/var-functionname-function-vs-function-functionname

AngularJS | jQuery

http://javascriptissexy.com/how-to-learn-javascript-properly/ http://javascriptissexy.com/understand-javascript-callback-functions-and-use-them/

http://www.codecademy.com/en/tracks/javascript

http://eloquentjavascript.net

Object literal notation. note colons and commas. semicolon at end.

  var thing = {
        name: "Fred",
        age: 25
   };

Object constructor notation. all semicolons now.

   var thing = new Object();
   thing.name = "Fred";
   thing.age = 25;

Custom constructor. no semicolon at end.

   function Person ( name, age ) {
      this.name = name;
      this.age = age;
  }

Custom constructor with properties and method.

  function Person ( name, age ) {
    this.name = name;
    this.age = age;
    this.speak = function () {
         console.log( "Hello!");
    };
  }

Adding a method to a class later:

  Person.prototype.walk = function (steps) { 
      this.position = position + steps; 
   }

Inheritance

  Dog.prototype = new Animal();

public vs private properties

  this.prop 
  var prop

Printing out all the properties. someObject is an object. prop is a placeholder, could be anything.

 for (var prop in someObject ){
    console.log(prop + someObject[prop]) ;
 }

Accessing elements by arbitrary attribute and value

      var cardInfo = {
        number:     document.querySelector('[data-stripe="number"]').value,
        cvc:        document.querySelector('[data-stripe="cvc"]').value ,
        exp_month:  document.querySelector('[data-stripe="exp-month"]').value,
        exp_year:   document.querySelector('[data-stripe="exp-year"]').value
      };


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited February 28, 2017 7:53 am by 133-94-98-198.dsl.wavetel.us (diff)
Search: