How to use `string.startsWith()` method ignoring the case? December 2, 2022 by Tarik Use toUpperCase() or toLowerCase() to standardise your string before testing it.