JavaScript Seleccionar letra en la cadena

const str = 'Hello';
str.substring(0, 2); // => 'Hel'
Lioruby