This is the CS equivalent of "maths are useless since I'll never use them in real life". Even if you are a software engineer who works exclusively on Javascript you need to understand the basic of how things work.
Most math is useless to 95% of the population. I can't remember the last time I used any of the teachings of my calculus heavy undergrad.
Remembering the chain rule is useless sure, but concepts like how integration works, Newton's method, Bayes rule, and a comfort with calculus-y concepts help me in my job all the time, when reasoning about problems and understanding systems.
Math isnt useless. But you wouldnt ask an english teacher math questions at an interview, would you?