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