Contact: aviboots(AT)netvision.net.il
40,767 questions
53,147 answers
573 users
const s = 'nodejs'; const secondToLast = s[s.length - 2]; console.log(secondToLast); /* run: j */