Contact: aviboots(AT)netvision.net.il
42,688 questions
55,447 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 */