AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
JavaScript - The Dot at on String or Array
The dot at on string or array objects allows you it's a lot like the square bracket notation where you would just put in square bracket zero for the first item or five. The difference is that with normal JavaScript arrays, if you were to put square bracket negative one, it thinks that you're looking for the index at negative one. But with at with dot at parenthesesnegative one, it will just simply go to the end of the array. So it gives you the last one. Or if you want negative three, it'll grab the third from the last. And there are some new architecture updates as well. There's a whole bunch of new architecture updates.