Contact: aviboots(AT)netvision.net.il
40,769 questions
53,151 answers
573 users
const str = "node.js"; const first = str.charAt(0); console.log(first); const last = str.charAt(str.length - 1); console.log(last); /* run: n s */
const str = "node.js"; const first = str[0]; console.log(first); const last = str[str.length - 1]; console.log(last); /* run: n s */