one easy  way to solve
\nvar reorderedPowerOf2 = function(n) {\n    let str = n.toString();\n   let initialString =  str.split(\'\').sort().join(\'\');\n    \n    \n    for(let i=0; i
```\nvar reorderedPowerOf2 = function(n) {\n    let str = n.toString();\n   let initialString =  str.split(\'\').sort().join(\'\');\n    \n    \n    for(let i=0; i<30; i++){\n        let tempString = (1<<i).toString();\n       let finalString = tempString.split(\'\').sort().join(\'\');\n        if(initialString===finalString){\n            return true\n        }\n    }\n    return false\n}\n```\n
['JavaScript']