Contact: aviboots(AT)netvision.net.il
39,987 questions
51,931 answers
573 users
let str = 'javascript,c,c++,python/'; str = str.endsWith('/') ? str.slice(0, -1) : str; console.log(str); /* run: "javascript,c,c++,python" */