Hi Deborah, great video as always! I was wondering: is with() almost the same as toSpliced() with the only difference the fact that you can't optionally select only a part of the array to copy instead of all the elements?
Thanks! with() is being focused on changing one element. toSpliced() is more flexible and allows for removing items, replacing one element with multiple elements, and inserting new elements
That was an excellent summary of .with(). Your teaching style is second to none. Thank you! Would you also make videos/books on .NET and Java/ Spring Boot?
Thank you very much! I did one .NET/C# video and it didn't get many views. But maybe I'll try again? Sorry to say that I don't know Java/Spring Boot. Thanks again!
Let's think though this a moment. Say I have an array bound to a UI element. Let's call that variable "ages". If I want to modify that array *and* have it appear updated in the UI, I need to change that same variable to a new array. I can do that in an *immutable* way by creating a new array and assigning it to that same variable. To change the variable, I need a "let".