Uncategorized

JavaScript – Spread Operator (…)

Posted on

What is the JavaScript spread operator? How do you use it? Why would you use something that looks so ridiculous? This post will hopefully answer these questions. The spread operator, in simple terms, is a way to “spread” the contents of an array or object. I know, that doesn’t make sense by itself, so let’s […]

JavaScript

JavaScript – Objects

Posted on

What are objects? How do you create them in JavaScript? How do you use them in JavaScript? This post will hopefully answer these questions. Objects in JavaScript are, in the most simplest of terms, a collection of key value pairs. The key can be any string, or it must begin with an uppercase letter, lowercase […]

JavaScript

JavaScript – Hash Maps

Posted on

What are hash maps? How do you use them in JavaScript? This post will hopefully answer these questions. It might be worth taking a minute to read the wikipedia article on hash maps here. But to summarize, a hash map is basically a way to map unique keys to values. It helps search and retrieve […]

JavaScript

JavaScript – Constructor Functions

Posted on

What are Constructor functions in JavaScript? Why are they useful? This post will hopefully answer these questions. In JavaScript, constructors are a way to create a class which can be instantiated into usable objects. Similar to JavaScript prototypes. Let’s create a constructor Animal which can be instantiated into various different animals such as dogs, cats, […]

JavaScript

JavaScript – Memoize

Posted on

What is memoization and why is it important? How do you do it in JavaScript? This post will hopefully answer these questions. Memoization is a topic which has come up in most technical interviews I have been a part of. I have been asked some variant of this question in four different interviews from four […]

Coding Exercises

CSS Hover Thumbnail Images

Posted on

Here is a quick and fairly common CSS interview question that seems to come up in technical white boarding sessions. I’ve been asked this question in a front end developer technical interview for a large, well known Silicon Valley social media company. I think the reason this is a popular interview question is that it […]

JavaScript

JavaScript – Fat Arrow Functions

Posted on

What is a fat arrow function? What’s up with that crazy syntax? Why use it instead of a good ‘ol fashion function () {} function? What advantages does a fat arrow function give a developer? What is happening in the world!?!? This will be a topic to hopefully explain and clarify one of the most […]