📅  最后修改于: 2022-03-11 15:01:11.693000             🧑  作者: Mango
const place = "Denmark";
const n = 0; // 0 indexed i.e. 1st character
const firstCharacter = place.charAt(n);
console.log(firstCharacter); // D