Understand String Immutability, freeCodeCamp Basic Javascript

preview_player
Показать описание
In this challenge we learn that a string vallue cannot be altered once it is created. This doesnt mean we cannot change the value, but it does mean we cannot use 0 indexing to target a specific character and change it.
Рекомендации по теме
Комментарии
Автор

Thanks man, I was stuck on this one. I added myStr = "Hello World"; above the fix me code thinking I was making the myStr[0] ="H"; True so it would pass. Just couldnt wrap my head around the fact I needed to get rid of the bad code, not try and make it "true"

asdfkhieee