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”
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
}
You're really good at explaining the concepts, even though I know the JS basics already, I feel like I'm picking stuff up.
Thanks for these videos. They are helpful.
haha clear and simple 🙂 now with your explanation javascript somehow seems to be reasonable..^^
my mind is blown…. thank you for making such a clear explanation about function.