I am unable to type the following statement for the Google interview section under string cartography.
let letter = string[i];
I am simply not able to type the above statement. Once I type the word string and try to insert bracket it just rewrites over string.
Hey there, use the purple square brackets []
key, which is used to access items. The orange []
key creates a new array, which is why it’s overwriting string
.
Hope this helps, and good luck!
Ben
That worked, thank you very much for your quick response.
Regards
Mugunthan K