Given a string change every second letter to an uppercase ‘Z’. Assume there are no space. let str1 = "javascript";
Given a string change the every second letter to an uppercase ‘Z’. Assume there are no space. let string be javascript Example output: jZvZsZrZpZ OR each letter on a new line HERE IS MY CODE let newarr = str1.split(''); let…