Simple Easy Javascript Solution 100% beats 51.7 MB Memory
Code\n\n/**\n * @param {string} s\n * @return {string}\n */\nvar makeSmallestPalindrome = function(s) {\nlet newString = ""\nfor(let i=0 ; i< s.length ; i ++){\
# Code\n```\n/**\n * @param {string} s\n * @return {string}\n */\nvar makeSmallestPalindrome = function(s) {\nlet newString = ""\nfor(let i=0 ; i< s.length ; i ++){\n    let firstWord = s.charAt(i);\n    let lastWord = s.charAt(s.length -i - 1);\n    if(firstWord!==lastWord){\n        if(firstWord.charCodeAt(0)>lastWord.charCodeAt(0)){\n            firstWord = lastWord\n        }\n    }\n    newString = newString + firstWord \n}\nreturn(newString)\n\n  \n};\n```
['JavaScript']