By the way, strings are marked with
`` (multiline code definition), and arrays are
undefined into the array. But the string can not be modified this way because, as mentioned in the beginning, they are immutable.
\ to escape special characters (e.g., a
" that is inside a string marked with
\" represents a
We can directly use ASCII and Unicode in strings with
\ just like we did in C. But I will not elaborate further as I can not see an obvious use case of this feature in a high level language.
For strings, we use
+, or string template:
Please note that grave accent (`) should be used for string template, not apostrophe (‘).
For array, use
 for both:
indexOf() for both.
substring() for string and
slice() for array.
I hope this post gives you enough confidence to use these two everyday life data structures (types).