Do you use JavaScript in your job? If so, how?

To try to break into the technical writing industry, I've signed up for tons of courses including a continuing education course at my local university for JavaScript. I did take a prerequisite HTML/CSS course and achieved an A+, so I thought I would be well situated to learn JavaScript and tack it onto my aspiring tech writer resume.

However, this course is killing me. I can't even wrap my head around the first assignment, which is asking me to code a randomized mathematical equation based on user inputs. I feel completely lost and am considering dropping the course so I can focus my efforts on Git/HTML/CSS/Markdown for now and return to JS later. Granted, this course is part of a front-end web development certificate so it's been developed for web designers, not writers.

Basically, I'm wondering if technical writers use JavaScript in their day-to-day? If so, how do you use JavaScript? Am I not going to be cut out for technical writing if I can't even grasp JS?