I released my first article aimed at those new to #JavaScript, titled 'Learning JavaScript Arrays.' It adopts a test-driven style, inviting readers to solve small tests within the article.
π https://jskatas.org/blog/2023/09/29-learn-arrays/?source=mastodon
I saw the array section on jskatas be most used, so I thought maybe lets dive a bit deeper and I brought arrays, the knowledge and the test approach together. What do you think? I would love to get feedback.
Learning JavaScript Arrays
An array is like a queue where you can have zero, one or many values. The first value can be found at index 0, and others follow. An empty array, like a queue with no one in it, is written in JavaScript as `[]`. The `[` and `]` are the start and end markers, and items inside are separated by commas.For example, to make an array with the numbers 0 to 3, you write `[0, 1, 2, 3]`.