Short code snippets for all your development needs

Start of main content## Articles

The coding articles collection contains curated stories, tips, questions and answers on a wide variety of topics. The main focus of these articles revolves around the languages and technologies presented in snippets, as well as career advice and lessons.

### How do I compare two objects in JavaScript?

JavaScript, Article

Learn how you can compare two objects in JavaScript using various different techniques.

### What are the differences between var, let and const in JavaScript?

JavaScript, Article

JavaScript variables can be declared a handful of ways. However, they're not all created equal and understanding their differences can drastically change the way you code.

### What are truthy and falsy values in JavaScript?

JavaScript, Article

JavaScript uses type coercion in Boolean contexts, resulting in truthy or falsy values. Get a hang of how it all works in this quick guide.

### Native JavaScript Data Structures

JavaScript, Article

JavaScript provides a handful of native data structures that you can start using in your code right now.

### JavaScript Data Structures - Binary Search Tree

JavaScript, Article

A binary search tree is a data structure consisting of a set of ordered linked nodes representing a hierarchical tree structure, in which each node can have at most two children.

### JavaScript Data Structures - Binary Tree

JavaScript, Article

A binary tree is a data structure consisting of a set of linked nodes representing a hierarchical tree structure, in which each node can have at most two children.

### JavaScript Data Structures - Tree

JavaScript, Article

A tree is a data structure consisting of a set of linked nodes representing a hierarchical tree structure.

### JavaScript Data Structures - Graph

JavaScript, Article

A graph is a data structure consisting of a set of vertices connected by a set of edges.

### JavaScript Data Structures - Doubly Linked List

JavaScript, Article

A doubly linked list is a linear data structure where each element points both to the next and the previous one.

### JavaScript Data Structures - Linked List

JavaScript, Article

A linked list is a linear data structure where each element points to the next.

### JavaScript Data Structures - Stack

JavaScript, Article

A stack is a linear data structure which follows a last in, first out (LIFO) order of operations.

### JavaScript Data Structures - Queue

JavaScript, Article

A queue is a linear data structure which follows a first in, first out (FIFO) order of operations.

### Tip: Get the index of an array item in a JavaScript for...of loop

JavaScript, Article

Did you know you can get the index of an array item in a JavaScript for...of loop? Learn how with this bite-sized tip.

### 6 Python f-strings tips and tricks

Python, Article

Python's f-strings can do a lot more than you might expect. Learn a few useful tips and tricks in this quick guide.

### How does Git's fast-forward mode work?

Git, Article

Merging a branch is a pretty common Git operation. Learn how fast-forward mode works and its benefits, so you can decide if it's a good fit for you and your team.