To help remind yourself of things you've learned, never hesitate to incorporate cheat sheets into your programming journey. They're a great tool for picking up new methods and refreshing yourself on tricks you already know.
If you're brand new to coding and looking to dip your toes into computer science before your deep dive into arrays, the CS50 Data Structure Lecture should be at the top of your watch list.
CS50 is an introductory Computer Science course at Harvard university taught by David J. Malan. The video offers a foundational premise of the intellectual enterprises of computer science and the art of programming, with energy, depth, and clarity.
A non-mutating (or immutable) method is a method that does not change or alter the object after using the said method.
flatMap() has a lower browser usability score than join().
A link to an in-depth browser usability report is provided for each function by clicks on the score icon.
Hint: slice() is immutable while splice() is mutable.
Share this post
Feeling inspired to start coding? Check out some kata that have been hand selected based on this article.
The elements in the returned array should be in the same order as in the initial array passed to your function, albeit with the 'geese' removed. Note that all of the strings will be in the same case as those provided, and some elements may be repeated.
Consider the word "abode". We can see that the letter a is in position 1 and b is in position 2. In the alphabet, a and b are also in positions 1 and 2. Notice also that d and e in abode occupy the positions they would occupy in the alphabet, which are positions 4 and 5.
Given an array of words, return an array of the number of letters that occupy their positions in the alphabet for each word. For example,