Javascript easy to read
\nvar modifyString = function(s) {\n  const arr = s.split(\'\')\n  let res = \'\'\n  for(let i=0;i<s.length;i++){\n    const curr = arr[i]\n    if(curr !== \'?\
```\nvar modifyString = function(s) {\n  const arr = s.split(\'\')\n  let res = \'\'\n  for(let i=0;i<s.length;i++){\n    const curr = arr[i]\n    if(curr !== \'?\') continue\n    const prevCharCode = (arr[i-1] || \'\').charCodeAt(0)\n    const nextCharCode = (arr[i+1] || \'\').charCodeAt(0)\n    let random = 0\n    while(!random){\n      random = Math.floor(Math.random() * 26);\n      random += 97 // starting at \'a\'\n      if(random === prevCharCode || random === nextCharCode){\n        random = 0\n        continue\n      } \n      arr[i]= String.fromCharCode(random)\n      break\n    }    \n  }\n  return arr.join(\'\')\n};\n```
['JavaScript']