Super easy solution in JS. WOW.
\n# Code\n\n/**\n * @param {string} s\n * @return {string}\n */\nvar makeSmallestPalindrome = function(s) {\n    let str = s.split(\'\')\n    for(let i = s.leng
\n# Code\n```\n/**\n * @param {string} s\n * @return {string}\n */\nvar makeSmallestPalindrome = function(s) {\n    let str = s.split(\'\')\n    for(let i = s.length - 1, j = 0; i >= Math.ceil(s.length / 2); i--, j++) {\n        if(str[i] < str[j]) {\n            str[j] = str[i]\n        } else {\n            str[i] = str[j]\n        }\n    }\n    return str.join(\'\')\n};\n```
['JavaScript']