2027 | JavaScript 1-Line Solution
Runtime: 83 ms, faster than 47.58% of JavaScript online submissions\n> Memory Usage: 39.2 MB, less than 17.18% of JavaScript online submissions\n\njavascript\n 
> Runtime: **83 ms**, faster than *47.58%* of JavaScript online submissions\n> Memory Usage: **39.2 MB**, less than *17.18%* of JavaScript online submissions\n\n```javascript\n const minimumMoves = s => s.match(/X.{0,2}/g)?.length ?? 0;\n ```
['JavaScript']