Author: Gina Russo

Sorting words using the sort() method

You’ve been given an array of words and asked to sort them in alphabetical order. Wow, that was easy! Here’s how it works: The sort() method is used to rearrange the elements of an array in ascending order by default. However, the default sorting behavior is based on converting elements to strings and comparing their […]

Sorting numbers with the sort() method

You’ve been given an array of numbers and asked to sort them in ascending order. Let’s take a look… Well, that’s not right! Here’s why: The default behavior of the sort() method in JavaScript is to convert elements to strings before performing comparisons. This can sometimes lead to unexpected results when sorting numbers. Instead, you’ll […]

Learn how to program with Raspberry Pi

The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. It’s capable of doing everything you’d expect […]