How to get first character of string in JavaScript

Strings
Last updated Dec 16, 2017
const name = "William moore";

name.charAt(0);
W