is it OK to use javascript for machine coding rounds? [closed]

I’ve come across that a lot of big tech companies are focussing on machine coding round where we have to write our code in OOP format. But I’ve been coding in javascript only for almost 2 years so is it a good idea to choose JS for this round or I should learn another OOP programming language to clear this round ?

I am trying to clear my doubts on machine coding rounds during an interview process and also want to clear the doubt of using javascript as the language for this round. If anyone has already use JS for this round please help me with this doubt.