My last CTO was hired after me, the org was hyperscaling. When i was interviewed I was told that the company is banking on JS and that's what we were doing on both ends [1]
When CTO was hired he made a walk through the office, greeting every team, he stopped at our cubicle and asked what we were doing - I told him basics - and he said "you should be doing that in Java".
Few weeks later he had a townhall presentation. He came to a room full of people, plug in his computer and the screen started playing a pornhub flix.
He didn't got fired. I was.