Last night I learned the niftiest thing in my Evening JavaScript Intensive bootcamp class about objects. Something I had never come across before, and that is also difficult to find in any official documentation. But it is a thing, and does exist! Consider the following: [crayon-5ada15afbdd58843040642/] Notice the last property key in the cat object? It consists of two separate words and is encapsulated in quotes. So how would we access that property key and its associated value? Only with ... Continue Reading
javascript objects
Everything Be True
The Challenge: [crayon-5ada15afbe804553204008/] The solution should return: [crayon-5ada15afbe80f032450329/] Some helpful links: JavaScript Objects Starter code: [crayon-5ada15afbe819898086637/] What my solution had to achieve: To check whether the second provided argument is truthy on all elements of the first. The solution to this algorithm is fairly straightforward. First of all, since the solution involved iterating over elements in an array, I decided to use a for loop. And ... Continue Reading