Week 5
This week... we learned JavaScript... ermergerd! Learning JS made me realise how much I enjoy the friendliness of Ruby - but I'm convinced that comfort makes it harder to learn a new language.
JavaScript
It's an asynchronous client-side programming language, that does whizzy things in the browser! With Node.js it can be run server-side too. It's become rapidly popular (especially with codebar students!) because of it's use across the stack, it's shiny appeal and, probably, it's quirkiness.
I struggled with the need to write function() all over my code, but learning about how they're used to execute a block of code helped me understand Ruby better.
JS has special functions known as constructors which define properties and methods that will be inherited by their instances. Imagine