JavaScript substring: Example of Extracting the First Character