Javascript Substring Methods First Characters:- If you want to get the first characters of the string, so for that you have to see the example given below. In the following example, we have extracted the first 10 characters.
2019-04-24
Try the following example. Live Demo.