Contact: aviboots(AT)netvision.net.il
39,914 questions
51,847 answers
573 users
const s = "node.js"; const lastCharacter = s.substr(s.length - 1); console.log(lastCharacter); /* run: s */
const s = "node.js"; const lastCharacter = s.slice(-1); console.log(lastCharacter); /* run: s */