JavaScript Zdobądź pierwszy znak ciągu
var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H
Grepper
var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H
const place = "Denmark";
const n = 0; // 0 indexed i.e. 1st character
const firstCharacter = place.charAt(n);
console.log(firstCharacter); // D