Contact: aviboots(AT)netvision.net.il
40,760 questions
53,134 answers
573 users
const str = "typescript c++ php c java"; const subs = str.slice( str.indexOf('p') + 1, str.lastIndexOf('c'), ); console.log(subs); /* run: "escript c++ php " */