[JS] Check Different Characters
javascript\nvar areAlmostEqual = function(s1, s2) {\n    const diffIndexs = [];\n    for (let i = 0; i < s1.length; i++) {\n        if (s1[i] !== s2[i]) {\n    
```javascript\nvar areAlmostEqual = function(s1, s2) {\n    const diffIndexs = [];\n    for (let i = 0; i < s1.length; i++) {\n        if (s1[i] !== s2[i]) {\n            diffIndexs.push(i);\n            if (diffIndexs.length > 2) return false;\n        }\n    }\n    if (diffIndexs.length === 1) return false;\n    if (!diffIndexs.length) return true;\n    const [x, y] = diffIndexs;\n    return s1[x] === s2[y] && s1[y] === s2[x]\n};\n```
['JavaScript']