Famospace.com Is Live

For the long project at Hack Reactor, I worked as a software engineer at Famo.us in San Francisco. Our objective was to build something impressive using their framework. Easy enough. The final work time, from not knowing the Famo.us framework to making a fully functional and designed game came to ...

Function Declarations vs. Function Expressions

What does this evaluate to? var alpha = 1; var beta = function () { if (!alpha) { var alpha = 2; } alert(alpha); }; beta(); It's 2! But why? Why not 1? This is what's really happening: var alpha; // L1 alpha = 1; var beta; beta = function () { var alpha; // Here...

How to use the 'new' keyword

In my last post, we created examples for functional and functional-shared instantiation patterns. Today, we'll continue with those car examples for prototypal and pseudoclassical instantiation. Additionally, you'll easily understand exactly what new does. Prototypal Instantiation TL;DR: A functio...

Functional (and Shared) Instantiation

There are four ways to instantiate a function object. Today, we'll discuss the first two: Functional and Functional-Shared Instantiation. I'll write a post about the other two soon.. (edit: My post on prototypal and pseudoclassical instantiation can be found here.) Functional Instantiation TL;DR...