This is decent advice. I would also like to add that most companies will give you some kind of coding test. Some will actually give you a pen-and-paper test before the interview, while others will send you an online coding test, possibly from a third-party service such as TestDome. Point is — it’s a good idea to prepare for this by solving these kinds of tests. You can find many online.