Is it okay to use both c# and javascript in one scene or game?

I am making a game and I have car controller Script in javascript but I have used c# sharp for menu and other things. So is it okay to use both c# and javascript.

It will work (both will get compiled to CIL anyway) - but it’s not recommended if you need your scripts to interact with each other at all - accessing JS variables from the C# script and vice-versa.