Introduction

JavaScript 152 - Objects and Arrays

What You'll Learn

This GitBook covers two extremely important concepts in JavaScript: objects and arrays. It's crucial to have an understanding of these because the syntax in JavaScript is different than other languages.

When you learn about objects, you will be introduced to advanced concepts such as prototypes and inheritance. These subjects are some of the most confusing in JavaScript, but luckily, you won't need to use them this early in your career. For now, you probably just need to know that these exist, and are associated with the creation of JavaScript objects. We'll touch on the basics with plenty of examples, but just realize that you probably won't understand it on the first time through.

Arrays are a great concept that allow us to store a collection of values. This GitBook goes over the fundamentals of arrays as well as array methods. Array methods give us the ability to manipulate our arrays: adding/removing data, sorting or filtering based on certain properties, even reversing the order of a string! At the end of this book, you'll use the knowledge of arrays you've acquired to develop an algorithm that tests whether or not a given string is a palindrome (looks identical both forwards and backwards: i.e. racecar).

Last updated