Unable to test/write code in JS

Describe your issue

I was sloving the Problem on the following Link and when i try to change the language from c++ to js it doesnt work, even when using AI “Find Mistake” it shows me the solution in C++[i think, maybe it C not sure]
So it seems that the live / online code editor is not switching the language prefernce if changed from the dropdown.

Screenshot

Additional info

The language which AI is showing is actually JS only.