JavaScript Clean and Simple Solution
javascript\nvar mostVisited = function(n, rounds) {\n    const start = rounds[0], end = rounds[rounds.length-1];\n    const result = [];\n    \n    if(start <= 
```javascript\nvar mostVisited = function(n, rounds) {\n    const start = rounds[0], end = rounds[rounds.length-1];\n    const result = [];\n    \n    if(start <= end) {\n        for(let i = start; i <= end; i++) result.push(i);\n    } else {\n        for(let i = 1; i <= end; i++) result.push(i);\n        for(let i = start; i <= n; i++) result.push(i);\n    }\n    return result;\n};\n```
['JavaScript']