Contact: aviboots(AT)netvision.net.il
41,195 questions
53,691 answers
573 users
const arr = ['node.js', 'php', 'python', 'c', 'c#', 'java']; const index = arr.indexOf('c#'); if (index !== -1) { arr[index] = 'vb'; } console.log(arr); /* run: [ 'node.js', 'php', 'python', 'c', 'vb', 'java' ] */