Here is how you can get a character at specific position in a string:
Use charAt()
const str = 'Happy coding';
console.log(str.charAt(4)); //y
console.log(str.charAt(7)); //o
Use bracket notations
const str = 'Happy coding';
console.log(str[4]); //y
console.log(str[7]); //o