Posts

Showing posts with the label javascript

The Javascript Promise - A functional walkthrough

I came across a tutorial recently that made liberal use of Javascript Promises . I was having a hard time understanding them, so I punched the wall a few times and then took a deep breath and watched some youtube videos. Here's what I learned.

RECENT INTERVIEW QUESTION: Find Sum-Pairs in an Array that add up to X (JS/Ruby Solutions)

Recently got this question in a technical interview for a junior dev position. It's a pretty straightforward algorithm... still fumbled through it a lil bit to start (nerves). They also asked me to do it in Javascript specifically, which I'm still getting comfortable with (Ruby was language #1 for me). Anyway, check it out below. I'll talk through what I like/dislike about the solution, and I'll include a Ruby solution at the end too.

React part 1: Virtual DOM, JSX, and Components

The most buzzwordy of buzzwords in job descriptions across the nation. Let's explore some ReactJS basics.

LEARNING: Conditional (Ternary) Operator

Quick post on the Javascript Ternary Operator and how it works.

LEARNING: The ES6 Spread Operator (...)

What is the spread operator and how does it work?

WARMUP: Reverse a string without built-in methods (Ruby/JS solutions)

Warming up is a good thing. Here's a basic one to start with.