let str = 'John Wick'
let firstChar = str.charAt(0)
console.log(firstChar); // "J"
let string = "abcdefghi"
console.log(string.slice(0, 3))
// abc
let myStr = "Hello World"
let firstWord = myStr.split(" ")[0]
let sentence = "The big brown fox"
let word = sentence.split(" ")[0]
console.log(word) // The
var x = 'some string';
alert(x.charAt(0)); // alerts 's'
String.substring(0, 10);