Learning JavaScript Functions




Learn all about JavaScript functions.

Code example here: https://github.com/shama/letswritecode/tree/master/learning-js-functions

Watch this video if you want to setup the same development workflow I’m using: https://www.youtube.com/watch?v=Ads1A7pn2LI

Original source


5 responses to “Learning JavaScript Functions”

  1. Straight to point!!! Learnt a lot …. THANKS!
    Question: What do you think about applying context to default values?
    eg
    var context = {type: 'grizzly', says: 'grrrrr' }
    bear = bear.bind(context)
    function bear(type=this.type, says=this.says) {
    return 'The ' + type + ' bear says ' + says
    }

Leave a Reply