Answers for "Given a string change the every second letter to an uppercase ‘Z’. Assume // there are no space. // let str1 = "javascript";"

0

Given a string change the every second letter to an uppercase ‘Z’. Assume // there are no space. // let str1 = "javascript";

let str1 = "javascript";  
// Example output: 
// jZvZsZrZpZ OR each letter on a new line
// HINT: You can use  if((i+1) % 2 == 0) to check for even indexes
Posted by: Guest on September-27-2021

Code answers related to "Given a string change the every second letter to an uppercase ‘Z’. Assume // there are no space. // let str1 = "javascript";"

Code answers related to "Javascript"

Browse Popular Code Answers by Language