Interview depends on job and expectations of business company from you And they will controll interview in that line. If they want you work on elixir, they expect a elixir solution.
- Elixir is for Backend
Maybe the job is for fullstack developper, You will need to show skills for both.
I like to get creative. Talking to a Go shop, someone asked me to solve a problem with binary trees. I showed them a Haskell solution. It opens up a conversation about using the most appropriate tool for the job vs treating a single tool as your golden hammer.
I’d think that could easily come across as someone trying to BS their way thru an interview.
If that’s the impression the interviewer gets, then it’s up to them to follow up with: “now contrast with a typical imperative solution”.
Some companies are looking for the candidate who’s been doing a single tech for many years, others are more interested in someone with a breadth of experience.